Problems using Dev-C++ 4.9.7.0

This is a discussion on Problems using Dev-C++ 4.9.7.0 within the C++ Programming forums, part of the General Programming Boards category; I've been looking for an alternative to MS VC++ 6.0, so I was trying to use Dev-C++. I had an ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    56

    Problems using Dev-C++ 4.9.7.0

    I've been looking for an alternative to MS VC++ 6.0, so I was trying to use Dev-C++. I had an older version, so I (stupidly) decided to upgrade...I can't get this version (4.9.7.0) to come close to compiling my project. I get 501 errors, most of which are in the standard files that are being #include'd. Many of the errors look like this:

    Code:
    D:/DEV-CPP/include/c++/bits/char_traits.h:59: parse error before `;' token
    Without looking at all 501 errors, it appears that the vast majority of them are in these standard files (and by "standard" I mean "supplied with the compiler, not my own"). Does anybody have any idea why this would be? Is this a known problem (I couldn't find it on the Dev-C++ help site) or does it result from some mis-checked option somewhere???? Any other ideas?

  2. #2
    lurker
    Guest
    I'm sorry, I can't help you, but if you go to the bloodshed forum, and read and read and read the posts, there's been alot of discussion about this problem. I have 4.9.6.9, and the day that 4.9.7.0 was release it seemed to wreak all sorts of havoc. I think the problem is when downloaded, the header files don't go into the correct folder. There is alot of information on the bloodshed forum, but you have to sift through alot of other stuff. Good luck.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    That is probably because it uses mingw 3.2 which is up to the current C++ standard. Since I don't want to go into detail now just add the following line after your includes:

    Code:
    using namespace std;
    Also remember to include the C++ standard headers:

    Code:
    #include <iostream> // good!
    #include <iostream.h> // depricated!
    If you are still having troubles then tell me what else is wrong.

  4. #4
    Registered User
    Join Date
    Dec 2002
    Posts
    56
    I have been #include'ing like <iostream>, not with the .h. I will try as soon as I can to try using namespace std, but up to this point I have just been "using" what I needed (e.g. using std::cout, using std:stream). I'll let you know how that works......Thanks for the help.

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    17

    Lightbulb

    Nope, even with the using namespace std line, I can't get it to work too. I'll go take a look on Dev's forums, thanks. (Or maybe simply get back to good ol' 4.6.9).

    EDIT : Well, here it is : http://sourceforge.net/forum/forum.p...forum_id=48211
    The last message did the trick to me.
    Last edited by WarBaboon; 12-18-2002 at 10:10 AM.
    Using Dev-C++ beta under Win XP Pro. That or g++ on Mandrake Linux 9.0 .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 03:59 AM
  2. Programming With Dev C++
    By v01d in forum C++ Programming
    Replies: 3
    Last Post: 09-14-2007, 02:51 AM
  3. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  4. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  5. Dev and errors
    By Moffesto in forum C++ Programming
    Replies: 0
    Last Post: 06-22-2002, 01:17 AM

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