Good C compilers for free?

This is a discussion on Good C compilers for free? within the C Programming forums, part of the General Programming Boards category; Hi, I posted yesterday with some questions about creating screensavers and asking for advice on good compilers on a really ...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Location
    In front of my computer :)
    Posts
    10

    Good C compilers for free?

    Hi, I posted yesterday with some questions about creating screensavers and asking for advice on good compilers on a really tight budget. Someone nicely wrote in and gave me a link. I was at the library then, and I couldn't save it. When I got on the computer again this morning, my thread was gone, and so was the link. I may be posting again with more questions about screensavers, but until then- can anybody tell me where to get a good compiler?

  2. #2
    Registered User 00Sven's Avatar
    Join Date
    Feb 2006
    Posts
    127
    Dev-C++
    It is a C++ compiler but if you make sure that you save as a .c not a .cpp it compiles in C.
    ~Sven

  3. #3
    Registered User
    Join Date
    Mar 2006
    Location
    Sofia, Bullgaria
    Posts
    7
    re: identifier-less:
    >...good compilers on a really tight budget...
    On what platform?

    If you are running Win32 then try Bloodshed DevCpp IDE... it comes with the Mingw gcc Win32 port compiler, Editor, etc. and it is free of charge.
    www.bloodshed.net/devcpp.html

    On Linux with KDE's or GNOME's there is KDevelop and Eclipse... and gcc or g++ ofcource
    (both are open source software)

    I think that the main site here has very good info about this...
    read it

  4. #4
    Registered User
    Join Date
    Mar 2006
    Location
    Sofia, Bullgaria
    Posts
    7
    Re: Sven:
    ...Wow you're fast

  5. #5
    Registered User
    Join Date
    Mar 2006
    Location
    In front of my computer :)
    Posts
    10
    I don't have any idea what I'm running. I need to learn C, and C ++, and it looks like I'll be teaching myself from a book. I have windows XP to work with, and I'm not sure exactly what that means.

    It's not exactly like I can open notepad, like with writing html.

    When you get a C compiler, will it show you how to start? Can you have more than one on the same computer?

  6. #6
    Registered User eth0's Avatar
    Join Date
    Dec 2003
    Posts
    164
    Code::Blocks is about to blow Dev-Cpp out of the water....

    You need to grab a nightly build at the moment, but the next official release will push them clear.
    Open source isn't a matter of life or death......
    .......its much more important than that!!


    SuSE Linux - GCC 3.4.2
    XP Pro - Visual Studio 2005 TS, MinGW 3.4.2

  7. #7
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by identifier-less
    I don't have any idea what I'm running. I need to learn C, and C ++, and it looks like I'll be teaching myself from a book. I have windows XP to work with, and I'm not sure exactly what that means.
    You most likely have Win32 unless you have the 64 bit eddition so Dev-cpp will work or you could try Microsoft Visual C++ 2005 Express which is also free.

    It's not exactly like I can open notepad, like with writing html.
    You can write c source code in notepad or any other text editor you want but you'll still need a compiler to produce an executable.

    When you get a C compiler, will it show you how to start?
    Check your compiler's documentation.
    Can you have more than one on the same computer?
    Yes.

  8. #8
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,448
    Code::Blocks is about to blow Dev-Cpp out of the water....
    ... as soon as the developers realise that a "release candidate" is not a "stable release" and actually get their real stable release out :P

    That said, neither Code::Blocks nor Dev-C++ is a C compiler. They are both integrated development environments. Dev-C++ uses the MinGW port of GCC as its default compiler.

    You most likely have Win32 unless you have the 64 bit eddition so Dev-cpp will work or you could try Microsoft Visual C++ 2005 Express which is also free.
    I had the impression that MSVC++2005 doesnt support C, other than the common subset of C shared with C++. Is this true?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  9. #9
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    You can still code in c but will recieve a lot of warnings.

  10. #10
    Registered User
    Join Date
    Mar 2006
    Location
    In front of my computer :)
    Posts
    10
    Thanks everybody- what did you say?

    If I manage to write code for a really cool screensaver (like the ones that come with Windows) is there a certain compiler I'm going to need?

    Did ya'll say there's a difference between C compilers and C ++ compilers?

  11. #11
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,448
    Did ya'll say there's a difference between C compilers and C ++ compilers?
    Obviously C compilers compile C code, and C++ compilers compile C++ code. It so happens that C++ is almost a superset of C, so often C code can be compiled with a C++ compiler.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  12. #12
    Registered User
    Join Date
    Mar 2006
    Location
    In front of my computer :)
    Posts
    10
    Okay, thanks. I'm currently trying to download dev-cpp-4.9.9.2

    That should get me started at least, right?

  13. #13
    Registered User eth0's Avatar
    Join Date
    Dec 2003
    Posts
    164
    Quote Originally Posted by laserlight
    I had the impression that MSVC++2005 doesnt support C, other than the common subset of C shared with C++. Is this true?
    No this is not true. The MSVC compiler supports both C and C++.
    It is the best C compiler available for Windows systems able to produce efficient binaries is blistering time.

    You can still code in c but will recieve a lot of warnings.
    That's not true. The warnings come from bad code, not the compiler.
    I code in C only with warnings set to /W4 and my code is always warning free.

    MSVC is just as capable of building C projects as it is C++ projects. (e.g. Wine & ReactOS)
    Open source isn't a matter of life or death......
    .......its much more important than that!!


    SuSE Linux - GCC 3.4.2
    XP Pro - Visual Studio 2005 TS, MinGW 3.4.2

  14. #14
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    I get warnings for things like strcmp and strcpy as well as many of the other standard c functions which microsoft saw fit to replace with their *_s functions.

  15. #15
    Registered User eth0's Avatar
    Join Date
    Dec 2003
    Posts
    164
    They aren't really error warning, they are more notification warnings.
    Microsofts string-safe library is actually really good and certainly worth using if you plan on using VS exclusively to build.

    I stop these warnings by defining
    _CRT_SECURE_NO_DEPRECATE
    _CRT_NONSTDC_NO_DEPRECATE
    _CRT_NON_CONFORMING_SWPRINTFS
    in my default options (although I do like to use the string-safe libs when I can)

    You can also turn them off with a simple pragma in the header :

    #if (_MSC_VER >= 1400) /* VC8+ */
    #pragma warning(disable : 4996) /* or list the defines as stated above */
    #endif
    Open source isn't a matter of life or death......
    .......its much more important than that!!


    SuSE Linux - GCC 3.4.2
    XP Pro - Visual Studio 2005 TS, MinGW 3.4.2

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

Similar Threads

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

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