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]

<fstream> problem?


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.




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