Thanks, I have few machines, one of which is 3.4.0 under RH9 and I get the same exact errors. Now a bit of interesting fact I just discovered: If I use c++ -O3 -o test test.c -Wall -I/usr/include/g++-3/ it compiles just fine But gcc -O3 -o test test.c -Wall -I/usr/include/g++-3/ generates parse errors in fstream and iostream Boyan -----Original Message----- From: llewelly@xxxxxxxxxxxx [mailto:llewelly@xxxxxxxxxxxx] Sent: Sunday, May 02, 2004 4:22 PM To: Boyan Biandov Cc: 'gcc-help@xxxxxxxxxxx' Subject: Re: streambuf.h:403: parse error before `ios' Boyan Biandov <bbiandov@xxxxxxxxxxx> writes: > Hello, > > I have seen lots of posting about what I am experiencing but no > remedy. I don't get a sense it is a global library issue so I must be > doing something wrong. Here is the simplest source code: > > > #include <stdio.h> > #include <sys/io.h> > #include "/usr/include/g++-3/fstream.h" [snip] I vaguely recall <sys/io.h> contains a name or a macro which conflicts with something in gcc 2.9x fstream.h . I can't verify this now because I don't have 2.9x on linux. The problem does not occur with gcc 3.2.2 or 3.4.0 on slackware linux 9.0 .