[uClinux-dev] Does ucfront work with libstdc++.a?

kitefree kitefree at so-net.net.tw
Sat Oct 20 20:17:44 EDT 2007


>>Am Samstag, den 20.10.2007, 19:25 +0200 schrieb Wolfgang Mües: 
>> Nero,
>> 
>> You missed "-fpic -msingle-pic-base" for the linker.
>> The linker needs this flags to select the correct version of the 
>> libraries.

Thanks a lot, Wolfgang. I will try your suggestion soon and let
you know the result.

>It's generally true that you have to supply -fpic -msingle-pic->base to
>the linker. With the 3.4.4 snapgear toolchain, this won't help >either,
>because the compilers libs are compiled without -msingle-pic-base. >There
>are other reasons why c++ won't work. As far as I remember, >ucfront-g++
>doesn't supply the right libraries for calling the
>constructors/destructors, and the elf2flt ld script is for old >compilers
>with a different format of the ctor table.

>Regards,
>Erwin

Thanks Erwin.
Do you mean that even I use the most up-to-date uClinux-dist and
arm toolchain packages, the c++ constructors/destructors still don't
work? Or any other means I can try to make it work?

Regards,

Nero




More information about the uClinux-dev mailing list