This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++ headers and system headers
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: libstdc++ headers and system headers
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 16 Feb 2001 16:20:01 -0200
- Cc: Neil Booth <neil at daikokuya dot demon dot co dot uk>, gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Organization: GCC Team, Red Hat
- References: <Pine.SOL.3.91.1010215170511.8995D-100000@taarna.cygnus.com>
On Feb 15, 2001, Benjamin Kosnik <bkoz@redhat.com> wrote:
>> g++ -E test.c -o test.ii -I /usr/local/include/g++-v3/
> You shouldn't need to explicitly include this directory. I'm assuming
> you're doing this just to expose a bug?
In fact, IMO, it's *wrong* to add system header directories with -I.
You should use -isystem for those.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me