This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
<fstream> problem?
- From: Stefan Olsson <stefan at noname4us dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Wed, 05 Jun 2002 14:16:39 +0200
- Subject: <fstream> problem?
- Organization: Noname4us
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.