c++ includes not getting searched for correctly?

Ralf Corsepius rc040203@freenet.de
Tue Oct 5 03:13:00 GMT 2010


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



More information about the crossgcc mailing list