This is the mail archive of the gcc-help@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: Question about include path


On 3 February 2011 14:31,  <yann@linuxconsole.org> wrote:
> into gcc/incpath.c ?:
>
> into remove_duplicates :
>
> /LFS2011/include is removed because "it is a non-system directory that
> duplicates a system directory"
>
> Then the search order is :
>
> ?/LFS2011/bin/../lib/gcc/i586-pc-linux/4.5.2/include
> ?/LFS2011/bin/../lib/gcc/i586-pc-linux/4.5.2/include-fixed
> ?/LFS2011/include
> ?/usr/include
>
> the problem is that a "limits.h" is into
> /LFS2011/bin/../lib/gcc/i586-pc-linux/4.5.2/include-fixed/
>
> The "-I" option should not overwrite search order (and put
> /LFS2011/include as first directory) ?

No, see the manual entry for -I to see how standard system include
directories are handled:
http://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html

As documented you can use -isystem if needed.


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