Editor/Compiler question

This is a discussion on Editor/Compiler question within the C++ Programming forums, part of the General Programming Boards category; Opinions please as I am a bit confused right now. I started out using the Dev-C++ which was fine for ...

  1. #1
    Registered User BuzzBuzz's Avatar
    Join Date
    Feb 2009
    Posts
    89

    Editor/Compiler question

    Opinions please as I am a bit confused right now. I started out using the Dev-C++ which was fine for me, then switched to code::blocks for no apparent reason other than capriciousness.

    Both these compilers allowed the creation of code that held errors as can be seen in this thread. Now, is that just me, the compiler or something else? Do you lovely people have any recommendations on compilers?

    Cheers
    Any help I give may be classified as:
    The Blind leading the Blind...
    Currently working through:
    "C++ Primer Plus"

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Both these compilers allowed the creation of code that held errors
    It is not the job of compiler to check for errors; that's the programmer's job. The compiler just checks for syntax errors which is a small subset of the errors which can exist in source code.

    Anyways, neither Dev-C++ nor code::blocks are compilers. They are just IDEs which is a pretty front-end for a compiler. It's entirely possible that both Dev-C++ and code::blocks use the exact same compiler internally.

  3. #3
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    I would suggest Visual C++ Express by Microsoft since it's one of the more popular compilers, and it's free
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,452
    Quote Originally Posted by BuzzBuzz View Post
    Opinions please as I am a bit confused right now. I started out using the Dev-C++ which was fine for me, then switched to code::blocks for no apparent reason other than capriciousness.

    Both these compilers allowed the creation of code that held errors as can be seen in this thread. Now, is that just me, the compiler or something else? Do you lovely people have any recommendations on compilers?

    Cheers
    The problem is that you cannot create valid C++ code. This is not the IDE's fault.
    Go ahead and switch if you want, but you will still get errors akin to what you got in that thread.
    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.

  5. #5
    Registered User BuzzBuzz's Avatar
    Join Date
    Feb 2009
    Posts
    89
    Well, obviously the problem is me Not unexpected, but as I was not getting errors and the code was giving the correct results I thought that the code was correct.

    I just thought it was strange that I was not getting the errors that others were for the same bit of code. Normally the compiler pulls me up on what seems like everything. Obviously I have a way to go and a lot to learn.
    Any help I give may be classified as:
    The Blind leading the Blind...
    Currently working through:
    "C++ Primer Plus"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

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