C Compiler

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DossarLX ODI
    Batch Manager
    Game Manager
    FFR Simfile Author
    • Mar 2008
    • 14989

    #1

    C Compiler

    Hey guys, I have MinGW but I can't seem to run a C project (by that I mean a folder with header files and c files), I can only compile one c file at a time and this causes problems with programs that require many header and c files.

    Basically:
    - Is there a C compiler that's 1999 or later? I want to be able to use stdbool.h to be able to use the "bool" type
    - If any of you have used MinGW, how will I be able to run a program dependent on multiple header and c files? I can only run one .c file and I can't use any headers, there must be something that I don't know here
    Originally posted by hi19hi19
    oh boy, it's STIFF, I'll stretch before I sit down at the computer so not I'm not as STIFF next time I step a file
  • Kibblre
    Caelondia Represent
    • Jul 2004
    • 1984

    #2
    Re: C Compiler

    Visual C++ Express Edition compiles C I'm pretty sure.

    Also, any reason you're using C?
    Какой идиот придумал Бутерброд с дикобраза? Он хулиган и бездельник.

    Comment

    • DossarLX ODI
      Batch Manager
      Game Manager
      FFR Simfile Author
      • Mar 2008
      • 14989

      #3
      Re: C Compiler

      It's for my programming class; my university starts with C, then moves on to C++ and Java.

      Also I don't want to use visual basic; I would use NetBeans but it freaks out whenever I try building projects from my programming partner. He uses Linux and I user Windows so there are constant conflicts in trying to run our programs.
      Originally posted by hi19hi19
      oh boy, it's STIFF, I'll stretch before I sit down at the computer so not I'm not as STIFF next time I step a file

      Comment

      • Fission
        no
        FFR Simfile Author
        • Jan 2004
        • 1850

        #4
        Re: C Compiler

        Originally posted by DossarLX ODI
        Is there a C compiler that's 1999 or later? I want to be able to use stdbool.h to be able to use the "bool" type
        use gcc from MinGW

        Originally posted by DossarLX ODI
        If any of you have used MinGW, how will I be able to run a program dependent on multiple header and c files? I can only run one .c file and I can't use any headers, there must be something that I don't know here
        you need to use makefiles when you are trying to compile multiple source files. each IDE uses their own brand of makefile, so they aren't compatible with each other if you use different IDEs.

        your best bet would to be to use the same IDE or roll your own makefiles, but the latter option is most likely out of the scope of your ability, so just use the same IDE.

        EDIT: it's entirely possible to build an executable from multiple source files without makefiles by compiling each source to object files and then linking them into an executable, but that's really not something you want to be doing
        Last edited by Fission; 10-12-2013, 08:12 PM.

        Comment

        • Zageron
          Zageron E. Tazaterra
          FFR Administrator
          • Apr 2007
          • 6592

          #5
          Re: C Compiler

          Have you figured this out yet Dossar?

          Comment

          • DossarLX ODI
            Batch Manager
            Game Manager
            FFR Simfile Author
            • Mar 2008
            • 14989

            #6
            Re: C Compiler

            Yeah, my lab partner resolved the problem. He configured his repositories so now any changes I make to my code won't conflict with his operating system.

            I can finally use NetBeans and compile/run a project with header files, thanks for asking
            Originally posted by hi19hi19
            oh boy, it's STIFF, I'll stretch before I sit down at the computer so not I'm not as STIFF next time I step a file

            Comment

            Working...