This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++ includes not getting searched for correctly?


On 10/01/2010 10:47 PM, Anthony Foiani wrote:
Greetings --

Apologies if any of you see this twice; the original version got
rejected from the maling list because it looked too much like spam.
I've place my original mail at:

http://scrye.com/~tkil/ctng/cpp-include-mail.txt

The upshot is that the final cross-compiler looks in the wrong place
for c++ headers; it ends up looking in

   TARGET/lib/gcc/TARGET/4.5.1/include/
   TARGET/lib/gcc/TARGET/4.5.1/include-fixed/
   TARGET/TARGET/sys-root/usr/include/
These are the correct locations.

When it should be looking in:

TARGET/TARGET/sys-root/usr/include/c++/4.5.1/
And this would be wrong.

It is the C++ compiler that is invoked, not the C compiler.

Any ideas would be very welcome.
libstdc++ and its headers are GCC/g++ internal libraries (comparable to libgcc) and are part of a cross-gcc. I.e. cross-g++ needs to use its its libraries/headers and not those inside of a sysroot.

What confuses people, is Linux vendors relocating libstdc++ and its headers into /usr for native compilers.

Ralf


-- For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]