This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Fix __cplusplus definition
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Subject: Re: cpplib: Fix __cplusplus definition
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 26 Jan 2001 15:27:57 -0800 (PST)
- cc: Phil Edwards <pedwards at disaster dot jaj dot com>, Neil Booth <neil at daikokuya dot demon dot co dot uk>, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
> | No joy. :-( I get the same results from three fresh builds, using each
> | of c, c_std, c_shadow.
>
> Then, something must be wrong with our architecture -- we should coope
> with compliant system headers. Sigh.
Hmm. I'm not quite sure we can do anything else. We cope with:
1) unmangled, compliant headers by doing nothing (c)
2) standard "C" headers by injecting into std:: (c_std)
3) an attempt at only std:: (c_shadow)
It looks like the error may be somewhere else, in the way the sun headers
inject into std.
Phil if this is the case you shouldn't be able to compile
#include <stdio.h>
with g++. Can you try that? if it doesn't work, can you pre-process and
post it?
thanks,
benjamin