This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <fstream> problem?


> I just tried to compile a program which uses <fstream>:
> #include <fstream>
> 
> using namespace std;
> 
> int main( void )
> {
>     return 0;
> }
> 
> And get the following compile errors:

This appears to be a symptom suggesting that you installed gcc-3.1 on
top of an old gcc installation.  The obsolete file is causing conflicts.

> Any ideas?

Zap the headers and re-install.

Perhaps "make install" should generate an error if it sees obsolete
headers that are going to cause this problem?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]