This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ 3.0.2 fails with explicit -I/usr/include

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]