<fstream> problem?

Stefan Olsson stefan@noname4us.com
Wed Jun 5 05:18:00 GMT 2002


Hi!

Compiler:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /data/local/gcc-3.1/configure --enable-threads
Thread model: posix
gcc version 3.1

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:
In file included from /usr/local/include/g++-v3/fstream:48,
                 from kuk.cpp:1:
/usr/local/include/g++-v3/bits/basic_file.h:57: parse error before `{' token
/usr/local/include/g++-v3/bits/basic_file.h:62: virtual outside class
   declaration
...

It seems like that in 3.0.4 the basic_file.h file was present:
./libstdc++-v3/include/bits/basic_file.h

but in 3.1 it seems to be missing!

Any ideas?

Brgds

/Stefan

-- 
In any organization there will always be one person who knows what is going on.

This person must be fired.





More information about the Libstdc++ mailing list