This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: libstdc++ headers and system headers


On 18-Feb-2001, dewar@gnat.com <dewar@gnat.com> wrote:
> I still can't see anywhere in the documentation where you could learn
> that -I/usr/include would break GCC ...

Well, the "Interoperation" section has the following (or at least it
did last November):

 |    * Use of `-I/usr/include' may cause trouble.
 | 
 |      Many systems come with header files that won't work with GCC unless
 |      corrected by `fixincludes'.  The corrected header files go in a new
 |      directory; GCC searches this directory before `/usr/include'.  If
 |      you use `-I/usr/include', this tells GCC to search `/usr/include'
 |      earlier on, before the corrected headers.  The result is that you
 |      get the uncorrected header files.

However, the suggested course of action still uses `-I':

 |      Instead, you should use these options (when compiling C programs):
 | 
 |           -I/usr/local/lib/gcc-lib/TARGET/VERSION/include -I/usr/include

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


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