Re: streambuf.h:403: parse error before `ios'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Boyan Biandov <bbiandov@xxxxxxxxxxx> 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.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux