Thread: Beginner question

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    Beginner question

    Hi. I am going to be learning C in my spare time but before I do that I need to find a sutible compiler. I have been looking at Dev-C++ IDE which comes with a built-in compiler which can compile both C and C++ code. However, I see that it is no longer in development and I was wondering if this will pose a problem for me? Is there nothing like this that is more up to date and active in development?

    Besides this problem, is there any tips you experienced users have for me before I start learning C?

    Thanks.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You could search the board here for the last time someone asked this question; or the time before that, etc.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    4
    I apoligise. I tried searching compiler in the C forum but it returned irrelevant results (in my case) so I thought it would be more convienient to post a topic and get a straight answer.

    I will search more frequently in the future. Again, I'm sorry.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    code::blocks
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Here's a nice page: http://www.cprogramming.com/code_blocks/

    Apparently it's this websites' recommended set-up.

  6. #6
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Windows?

    You could install Cygwin, which comes with gcc and g++ (although you have to select them in the installation)
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  7. #7
    HelpingYouHelpUsHelpUsAll
    Join Date
    Dec 2007
    Location
    In your nightmares
    Posts
    223
    I use Dev-C++ & It works fine for me, you probably should try different compilers e.g. Dev-C++ picked up a warning that lcc-Win32 didn't (funny enough solving this led me to fix a bug that i was trying to solve).
    I haven't used Code::Blocks.
    long time no C; //seige
    You miss 100% of the people you don't C;
    Code:
    if (language != LANG_C && language != LANG_CPP)
        drown(language);

  8. #8
    Registered User
    Join Date
    Dec 2008
    Posts
    183
    i use msv6 and sometimes msv8

  9. #9
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    VS6 is long dead, it's well over 12 years old and will be turning 13 soon.

  10. #10
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > VS6 is long dead,
    Try telling that to the Turbo C noobs who show up with monotonous regularity
    VS6 is still OK as a "C89" compiler, but it's still not free AFAIK.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  11. #11
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Yes but there are a few bugs in the old beast (that I know of). It also comes packaged with old headers (specifically Win32) which will require updating.

    Would not other things like optimization have improved over the years too, even if the newer standard wasn't adopted?

    > but it's still not free AFAIK.
    Also true, and I doubt you can buy it anymore. Microsoft probably doesn't believe in "abandonware"

  12. #12
    Registered User
    Join Date
    Dec 2008
    Posts
    4
    Can I use C++ compilers to compile C code?

    Thank you for the suggestions, I will take a look at Code::Blocks since I have been hearing a lot about it.

  13. #13
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by johnmeikle33
    Can I use C++ compilers to compile C code?
    It depends on the C code, but the answer can be a yes.
    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

  14. #14
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by laserlight View Post
    It depends on the C code, but the answer can be a yes.
    Perhaps more importantly, most compilers are usually "both" C and C++ compilers. Both MS Visual Studio and gcc (which is the compiler that goes with Code::Blocks, Dev-C++, xcode and standalone as gcc or gcc-mingw) have C and C++ variants of the compiler in the same package.

    --
    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.

  15. #15
    Registered User
    Join Date
    Dec 2008
    Posts
    4
    So does that mean I can use Visual C++ Express Edition to write C code?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner: Linked List question
    By WeatherMan in forum C++ Programming
    Replies: 2
    Last Post: 04-03-2008, 07:16 AM
  2. Quick IF statement question (beginner)
    By jim.rattlehead in forum C Programming
    Replies: 23
    Last Post: 11-29-2007, 06:51 AM
  3. beginner question
    By Barrot in forum C++ Programming
    Replies: 4
    Last Post: 08-19-2005, 02:17 PM
  4. Question About External Files (Beginner)
    By jamez05 in forum C Programming
    Replies: 0
    Last Post: 08-11-2005, 07:05 AM
  5. Beginner on Win32 apps, lame question.
    By Templario in forum C Programming
    Replies: 3
    Last Post: 11-06-2002, 08:39 PM