This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

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.


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