This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: streambuf.h:403: parse error before `ios'
- From: llewelly at xmission dot com
- To: Boyan Biandov <bbiandov at SEIU790 dot org>
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: 02 May 2004 21:32:19 -0600
- Subject: Re: streambuf.h:403: parse error before `ios'
- References: <970544669F9C4844B487DC8CEBCF933AF51D41@OAKMSEXCH>
Boyan Biandov <bbiandov@SEIU790.org> writes:
> 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
[snip]
This is a different problem. 'gcc' will assume a '.c' file is C, not
C++. However, 'g++' will assume a '.c' file is C++, not C.