This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiler parsing error
- To: Bruce at EckelObjects dot com
- Subject: Re: Compiler parsing error
- From: Joe Buck <jbuck at Synopsys dot COM>
- Date: Mon, 28 Dec 98 11:02:23 PST
- Cc: chrisb at sandy dot force9 dot co dot uk, egcs at cygnus dot com
> There was a problem with a missing <algorithm> include, but the parser
> blowup still remains. The problem was in the use of "dos" or "unix" as an
> identifier; once I changed them to _dos and _unix it compiled. But it should
> not have generated a parser error. This was with the egcs snapshot from two
> weeks ago under RedHat Linux 5.2.
The -ansi flag will turn off preprocessor identifiers that are in the
reserved namespace. Unfortunately if they are turned off by default,
important packages like the X Window system fails to build.