Thread: What C compiler shoudl I get for Vista

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    1

    Question What C compiler shoudl I get for Vista

    Hi folks,

    I know there should be some answers for my question floating around here, but I want to ask again since I am new,

    What C compiler is good and hopefully free to download for window Vista?

    I tried Eclipse before, but it seems more stable for Linux than Window.

    Thanks

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Eclipse is an IDE, not a compiler. My favorite compiler is GCC, so my suggestion is to use mingw.

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by physicsRocks View Post
    I tried Eclipse before, but it seems more stable for Linux than Window.
    Eclipse is not a compiler.

    A compiler is not a big GUI app where you edit code, etc, etc. A compiler is something that takes a piece of source code and turns into an executable program, usually using a command like this:

    compile mycode.c

    "IDE"s such as Eclipse issue the command for you, but the compiler is a completely separate program from the IDE. You actually do not need an IDE at all, you can simply write code as plain text, save it to a file (such as "mycode.c") and then you run the command. The command is not actually "compile", it's the name of the compiler itself (eg, "gcc" which is a real and very popular compiler).

    If you are a student, you are probably in luck since apparently Microsoft makes a version of "Visual Studio" (which is an IDE like Eclipse, and includes it's own compiler) available for free to students. This may not be the best choice, but it's there.

    The other options: As I said, you actually don't need an IDE; some programmers (eg, me) don't like using them anyway and IMO they can cause unnecessary confusion for beginners -- your life will be a simpler, happier thing if you just find a nice text editor, write code, and compile it yourself. So you do need the compiler. GCC is free and there are several versions available for windows, just google or go with bithub's suggestion.
    Last edited by MK27; 07-20-2009 at 04:04 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    I would say your intentions have a lot to do with compiler choice. If your aim is to write real, portable C programs, then you can't go wrong with GCC (MinGW is the windows port). However, if you're plan to write programs FOR Vista, you're probably better off getting a compiler from Microsoft. As mentioned above, students can get Virtual Studio free of charge through MSDN, but it's just a GUI to help you develop for and use the compiler: Microsoft Visual C. The compiler itself is available free of charge from Microsoft's website.

  5. #5
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by MK27 View Post
    If you are a student, you are probably in luck since apparently Microsoft makes a version of "Visual Studio" (which is an IDE like Eclipse, and includes it's own compiler) available for free to students.
    Actually, Visual C++ 2005 or 2008 Express is free for everyone, not just students.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  6. #6
    Registered User
    Join Date
    Jan 2008
    Posts
    28
    There is a professional version of VC++ which isn't free. You might be using a college spam-bought professional version of VC++. But there is a free version that is more commonly used.

  7. #7
    pwning noobs Zlatko's Avatar
    Join Date
    Jun 2009
    Location
    The Great White North
    Posts
    132
    I've used gcc and gdb with emacs but if you want something that works out of the box, Visual C++ express edition will get you running and learning C++ with the least amount of distraction.

  8. #8

  9. #9
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Zlatko View Post
    I've used gcc and gdb with emacs but if you want something that works out of the box, Visual C++ express edition will get you running and learning C++ with the least amount of distraction.
    You mean C, yes?
    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.

  10. #10
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    603
    Netbeans 6.x works well in Vista 32 bit, Ultimate version.

    NetBeans IDE - C and C++ Development

  11. #11
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Quote Originally Posted by Elysia View Post
    You mean C, yes?
    I stopped reading at "emacs" anyway

  12. #12
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Or Perhaps Code::Block - Dev-C++ works too i guess :P

    Love the Dev-C++, dont seem to get any updates anymore

    ~ssharish
    Life is like riding a bicycle. To keep your balance you must keep moving - Einstein

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, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM