This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: <fstream> problem?
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: stefan at noname4us dot com (Stefan Olsson)
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 5 Jun 2002 14:54:56 -0700 (PDT)
- Subject: 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?