Re: Question about include path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3 February 2011 14:31,  <yann@xxxxxxxxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux