This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -I- option
On 26 September 2011 11:50, ali hagigat wrote:
> So '-I." is the same as '-I-' except that the current directory is
> searched too, isn't it?
Read the effects of -I- carefully.
1. Any directories specified with -I options before -I- are searched
only for headers requested with "#include "file""; they are not
searched for "#include <file>"."
Does -I. do that?
2. In addition, -I- inhibits the use of the directory of the current
file directory as the first search directory for "#include "file"".
Does -I. do that?