Compiler issues

This is a discussion on Compiler issues within the C++ Programming forums, part of the General Programming Boards category; I've only been into C++ for a few months, and I very recently got a new book on it. It ...

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    1

    Compiler issues

    I've only been into C++ for a few months, and I very recently got a new book on it. It starts you off right at the beginning, but I'm doing that stuff again anyway just to pick up any extra info. There is a CD provided that contains Bloodshed Dev-C++ to work in. Apparently it's a free C++ IDE. I was just wondering if anyone else has used it before and what they thought of it.

    Because it runs compile errors on very simple code. And I know the errors shouldn't be there because I will copy the exact code and paste it into Microsoft Visual Studio.NET (which I trust much more) and it will all run fine. This has already happened twice, and I'm only in the first chapter of the book. I can't imagine what will happen when the code gets more complicated...

  2. #2
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Dev-C++ uses the GCC compiler which is a very reputable compiler. Since it came with a book, however, you may have an old version. You can get a new version (inlcuding the GCC compiler) at www.bloodshed.net

    Unless it is really old, chances are there is either a) something wrong with the code, or b) something wrong with the way the environment is set up (you are using console mode programs, right?). Post the code.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  3. #3
    Registered User Scribbler's Avatar
    Join Date
    Sep 2004
    Location
    Aurora CO
    Posts
    266
    Because it runs compile errors on very simple code. And I know the errors shouldn't be there because I will copy the exact code and paste it into Microsoft Visual Studio.NET (which I trust much more) and it will all run fine.
    A minor irritant I sometimes have with Dev-C++ is that I have to make it a point to explicitly save my source files as .CPP, because too often when I allow the IDE to save it to a default file extension it saves it as .C, and the compiler spits numerous errors because it thinks it's compiling a C program rather than C++.

    You can set an option to default to C++ when creating new projects, but apparently it misses that option when you merely create a new source file vs a project.

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    3
    I think you must check the environment setup. I mean check all the include, library files are there or not. Also if not placed in the proper directories then do it now. If possible also send me your codes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help With finding a compiler
    By macman in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-15-2005, 08:15 AM
  2. Compiler questions
    By DvdHeijden in forum C++ Programming
    Replies: 6
    Last Post: 01-17-2005, 02:00 PM
  3. Have you ever written a compiler?
    By ammar in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 12-27-2004, 06:10 AM
  4. C Compiler
    By SAMSEIED in forum C Programming
    Replies: 5
    Last Post: 06-06-2002, 05:44 PM
  5. Special Compiler for win app's
    By Unregistered in forum Windows Programming
    Replies: 19
    Last Post: 04-26-2002, 03:52 PM

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