This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problems with fstream
- From: "Scott Robert Ladd" <scott at coyotegulch dot com>
- To: "Gcc at Gcc dot Gnu. Org" <gcc at gcc dot gnu dot org>
- Date: Wed, 15 May 2002 20:38:43 -0400
- Subject: Problems with fstream
I don't know if this is a libstdc++ problem, a bug in gcc, or just something
about how I built gcc 3.1. The following program will not compile:
#include <fstream>
int main()
{
return 0;
}
The cascade of errors begins:
In file included from /usr/local/include/g++-v3/fstream:48,
from ftest.cpp:1:
/usr/local/include/g++-v3/bits/basic_file.h:52: parse error before `{' token
And it all falls apart from there on.
Note that I've successfully built many previous versions of gcc without such
troubles, so I'm a bit confused as to why 3.1 is giving me headaches.
Scott Robert Ladd
Coyote Gulch Productions, http://www.coyotegulch.com
No ads -- just very free (and somewhat unusual) code.