Thread: Good C compilers

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    12

    Smile Good C compilers

    Hello, what are some good C compilers for windows (that are free)? Thanks.

  2. #2
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,834
    Isn't the Microsoft Visual Studio free? Check the Microsoft website. I recently downloaded one for my new Vista PC.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Microsoft Visual C++ 2008 Express is available at zero price, and comes with a C compiler. The MinGW port of gcc is another option for which several free IDEs available, one of which is Code::Blocks (you can download the Code::Blocks + MinGW bundle).
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Feb 2008
    Posts
    12

    Smile

    Quote Originally Posted by laserlight View Post
    Microsoft Visual C++ 2008 Express is available at zero price, and comes with a C compiler. The MinGW port of gcc is another option for which several free IDEs available, one of which is Code::Blocks (you can download the Code::Blocks + MinGW bundle).
    Hello, sorry to bother you, but are you sure there's a C compiler in visual C++ 2008? I've downloaded and installed it; and see no C compiler or any possible way to make a c file anywhere. Only C++.

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    but are you sure there's a C compiler in visual C++ 2008? I've downloaded and installed it; and see no C compiler or any possible way to make a c file anywhere. Only C++.
    Just name your source files with a .c extension and they will be compiled as C. Alternatively, configure project settings/properties to compile as C code.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    It has a C compiler, or at least there's a switch to make it do so (/Tc, I think?). The wizards are not going to let you create a .c file, but you could create an empty project, right click -> add existing file, and add your .c file to the project that way. It would then compile in C mode.

  7. #7
    Registered User
    Join Date
    Feb 2008
    Posts
    12

    Thumbs up

    Quote Originally Posted by laserlight View Post
    Microsoft Visual C++ 2008 Express is available at zero price, and comes with a C compiler. The MinGW port of gcc is another option for which several free IDEs available, one of which is Code::Blocks (you can download the Code::Blocks + MinGW bundle).
    Code::Blocks is very good, thanks.

  8. #8
    Registered User
    Join Date
    Jun 2008
    Posts
    127
    I posted something similar to this before. Your best bet is to find an ide that uses mingw(ex codeblocks), at least if you want C99. Otherwise, vs.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Good sound storage method
    By VirtualAce in forum Game Programming
    Replies: 1
    Last Post: 10-14-2003, 05:18 AM
  2. scientific calculators with compilers?
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 10-06-2003, 08:29 PM
  3. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM
  4. Opinion on GOOD digicam
    By Shadow in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-22-2003, 05:37 PM
  5. Question about atheists
    By gcn_zelda in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM