Re: How to force location of headers

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

 



On 04/09/2012 08:27 AM, Kabi wrote:

> I am using AM_CFLAGS to include directories where make should look for
> headers, but only headers surrounded by <> when included is overridden. make
> is still looking for headers surrounded by "" in the directory with the
> projects source .c files.

Searching for files with #include "" is done first in the current file
directory.

To change it with gcc use -I-, which is deprecated, but the only way I
know to remove . from the #include "" search path.

See your gcc/cpp man page though, it's quite possible I missed another
option to do it (-iquote does not appear to remove .).

Peter


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux