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 Mon, Oct 4, 2010 at 9:13 PM, Ralf Corsepius <rc040203@freenet.de> wrote:
> On 10/01/2010 10:47 PM, Anthony Foiani wrote:
>> 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.

Ok, I think I see the reasoning behind this: things like "stdio.h" in
/usr/include are a part of libc, while the g++ headers are properly a
part of GCC itself.  Ok.

So how do I get libstdc++ installed into one of those proper search
directories?  Here's where they ended up:

[tony@fedora12-64 xtools]$ find . -name '*stdc++*' -print
./powerpc-e500v2-linux-gnuspe/sys-root/lib/libstdc++.so
./powerpc-e500v2-linux-gnuspe/sys-root/lib/libstdc++.so.6.0.14
./powerpc-e500v2-linux-gnuspe/sys-root/lib/libstdc++.la
./powerpc-e500v2-linux-gnuspe/sys-root/lib/libstdc++.so.6.0.14-gdb.py
./powerpc-e500v2-linux-gnuspe/sys-root/lib/libstdc++.a
./powerpc-e500v2-linux-gnuspe/sys-root/lib/libstdc++.so.6
./powerpc-e500v2-linux-gnuspe/sys-root/usr/include/c++/4.5.1/powerpc-e500v2-linux-gnuspe/bits/stdc++.h

[tony@fedora12-64 xtools]$ find . -name 'iostream' -print
./powerpc-e500v2-linux-gnuspe/sys-root/usr/include/c++/4.5.1/iostream

Config file attached.

Thanks,
Tony

Attachment: config.gz
Description: GNU Zip compressed data

--
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]