This is the mail archive of the gcc-help@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]

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 .


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