GCC 4.3.2 ignores -I. if used with other -I directives?!

Angel Tsankov fn42551@fmi.uni-sofia.bg
Sat Nov 1 10:33:00 GMT 2008


Hi,


Here's how the test case:

1. Create the following directory tree:

|--include/config.h (may be empty)
|--source/config.h (may be empty)
\--dbgcnt.c (contains only '#include "config.h"')


2. Go to directory "source" and execute the following commands:
gcc -M -I../include -I. ../dbgcnt.c
gcc -M -I. -I../include ../dbgcnt.c


Result on my system:
dbgcnt.o: ../dbgcnt.c ../include/config.h


Is this the expected result or smth is wrong?


Regards,
Angel Tsankov 





More information about the Gcc mailing list