Compiler for C

This is a discussion on Compiler for C within the C Programming forums, part of the General Programming Boards category; Hello, I am used to php. I am wondering how to get a compiler for C? Is c a language ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    19

    Compiler for C

    Hello,
    I am used to php. I am wondering how to get a compiler for C? Is c a language that has no free compiler and costs money or what? In class, we use unix term servers to term in and compile our code through it. I have no idea what the process is actually like in front of me.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    Quote Originally Posted by blackcell View Post
    Hello,
    I am used to php. I am wondering how to get a compiler for C? Is c a language that has no free compiler and costs money or what? In class, we use unix term servers to term in and compile our code through it. I have no idea what the process is actually like in front of me.
    What kind of computer are you using?

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    There's lots of free C & C++ compilers.

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    182
    If you're used to using the terminal you should have no problem running a linux livecd. A livecd will boot the operating system directly from the cd without installation.

    http://distrowatch.com/search.php?ca...&status=Active

    Knoppix is probably the most featureful, Damn Small Linux has one of the lightest footprints( although I don't remember if that one comes with a compiler or not ).

  5. #5
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    Quote Originally Posted by yougene View Post
    Knoppix is probably the most featureful, Damn Small Linux has one of the lightest footprints( although I don't remember if that one comes with a compiler or not ).
    Unfortnately not. Although it should not be difficult to get one in DSL.
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  6. #6
    Registered User
    Join Date
    Jan 2008
    Posts
    19
    Preferably a compiler for windows thats free. any recommendations?

  7. #7
    Super unModrator
    Join Date
    Dec 2007
    Posts
    321
    Quote Originally Posted by blackcell View Post
    Preferably a compiler for windows thats free. any recommendations?
    gcc compiler. But why not an IDE, like MSVS 2008 or Dev C++ ?
    Last edited by abh!shek; 03-04-2008 at 07:59 AM.

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Microsoft Visual Studio Express 2008.
    Code::Blocks IDE (combine with gcc for example).
    gcc MingW (compiler on it's own).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  9. #9
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    dev++ is a nice lightweight IDE for windows, but there are some compatibilty issues with vista.

    VC++ 2005 is much nicer for bigger projects.

    Also, I havent tried codeblocks but many people seem to like it.

  10. #10
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129

  11. #11
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,556
    /me recommends Visual Studio.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #12
    Registered User
    Join Date
    Mar 2008
    Location
    slovenia
    Posts
    25
    I recommend a simple Pelles C IDE (just google it, it's free), you could also get the dev c++ ( as far as I know all c++ compilers compile C code just as well ).

  13. #13
    Registered User
    Join Date
    Oct 2006
    Location
    Omaha, Nebraska
    Posts
    116
    MSVC++:Express will compile C code as well. Does have a bit of a learning curve but the help files that come with it are good for that.

    edit: should have read ALL of the posted comments before I posted. sorry Matsp : )
    Last edited by MikeyIckey; 03-04-2008 at 05:29 PM. Reason: cause i is smrt!

  14. #14
    Registered User
    Join Date
    Feb 2008
    Posts
    19
    Code::Blocks + MINGW for me.

    But I like Pelles C as well.

  15. #15
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,556
    GCC does not have narrowing data conversion warnings, which is bad for beginners. Visual Studio has, so I definitely recommend it over GCC for beginners.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21