This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 3.0.2 fails with explicit -I/usr/include
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: joseph at itgssi dot com
- Date: Fri, 30 Nov 2001 00:25:10 -0600 (CST)
- Subject: Re: g++ 3.0.2 fails with explicit -I/usr/include
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
[Get raw message]
In article <3C071CDF.9996C7C1@itgssi.com> you write:
> (g++ -c g.cc works, naturally)
>
> this is g.cc
> ==============================
> #include <fstream>
> ==============================
Of course, g++ 3.0.2 fails with explicit -I/usr/include. It is
documented as not supported unless *you* do a bit more work yourself.
>From gcc.texi: ``Use of @option{-I/usr/include} may cause trouble.''
[... what to do about it, removed; consult your local info pages which
were installed with your compiler ...]
BTW, gcc 3.1 may improved the situation (or I may just be "lucky"):
; /usr/local/beta-gcc/bin/g++ -c -I/usr/include t.C
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning: as it has already been specified as a non-system directory