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: Boyan Biandov <bbiandov at SEIU790 dot org>
- To: "'llewelly at xmission dot com'" <llewelly at xmission dot com>
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Sun, 2 May 2004 17:18:40 -0700
- Subject: RE: streambuf.h:403: parse error before `ios'
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@xmission.com [mailto:llewelly@xmission.com]
Sent: Sunday, May 02, 2004 4:22 PM
To: Boyan Biandov
Cc: 'gcc-help@gcc.gnu.org'
Subject: Re: streambuf.h:403: parse error before `ios'
Boyan Biandov <bbiandov@SEIU790.org> 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 .