Adding include directories (-I)
John Love-Jensen
eljay@adobe.com
Wed Feb 28 16:37:00 GMT 2007
Hi Sebastian,
> No, they are also searched before system includes for #include <blah.h>:
Appears to be a difference in behavior for C and C++ code.
The gcc toolchain driver has the behavior you indicated using test.c; but
the g++ toolchain driver has the behavior I mentioned using test.cpp (given
your example situation).
I was testing against C++, since that's what I normally use.
Mea culpa. Sorry for any confusion.
--Eljay
More information about the Gcc-help
mailing list