Re: Adding include directories (-I)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux