[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to force location of headers
From: |
Peter O'Gorman |
Subject: |
Re: How to force location of headers |
Date: |
Mon, 09 Apr 2012 13:45:44 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
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