Dev C++ will not let me continue compiling

Hey there everyone, my problem is that I have been using Dev C++ (unable to download anything else because of my pc :( ) and am unable to compile anymore.

I have been working on a draughts game and so far it is going ok. I made some classes and am currently testing them.

It was all compiling fine until a little while ago when for no apparent reason it will not compile and keeps giving me many random errors that when clicked open up included files such as:

functexcept.h
basic_string.h

and a few others. I looked at my code, can't see any errors. So i started a brand new project and after compiling it gave the same errors. I found that the

#include <iostream>

is what is causing the problem, for when I remove it, the program compiles.

Have you any ideas what this might be and how to fix it (I require iostream libraryin my program)?

Some of the errors it gave are listed below (too many to list). Thank you for any light you may shed on this matter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
44 C:\Dev-Cpp\include\c++\3.4.2\iosfwd:51,               from C:\Dev-Cpp\include\c++\3.4.2\ios In file included from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:51,               from C:/Dev-Cpp/include/c++/3.4.2/ios 


45 C:\Dev-Cpp\include\c++\3.4.2\ios:44,               from C:\Dev-Cpp\include\c++\3.4.2\ostream                  from C:/Dev-Cpp/include/c++/3.4.2/ios:44,               from C:/Dev-Cpp/include/c++/3.4.2/ostream 


45 C:\Dev-Cpp\include\c++\3.4.2\ostream:45,               from C:\Dev-Cpp\include\c++\3.4.2\iostream                  from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,               from C:/Dev-Cpp/include/c++/3.4.2/iostream 


2 C:\Dev-Cpp\include\c++\3.4.2\iostream:45,               from maintest.cpp                  from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,               from maintest.cpp 


37 C:\Dev-Cpp\include\c++\3.4.2\bits\functexcept.h expected unqualified-id before '{' token 


 C:\Dev-Cpp\include\c++\3.4.2\bits\localefwd.h In function `const _Facet& std::__check_facet(const _Facet*)':  
I'm no expert at all but my best guess would be that either some of the headers themselves were corrupted, or directories to those headers were altered.
Reinstalling Dev-Cpp should clear up any problems.
closed account (3pj6b7Xj)
The compiler is complaining that you forgot a bracket "{" some where, look hard in your code, sometimes those missing brackets are so cluttered up with your code that you can't tell whats going and then...you find it and start hitting your head on the wall.
Last edited on
Topic archived. No new replies allowed.