This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC 4.3.2 ignores -I. if used with other -I directives?!
- From: "Angel Tsankov" <fn42551 at fmi dot uni-sofia dot bg>
- To: gcc at gcc dot gnu dot org
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 1 Nov 2008 12:32:27 +0200
- Subject: GCC 4.3.2 ignores -I. if used with other -I directives?!
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