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

Wolfgang Mües wolfgang at iksw-muees.de
Sat Oct 20 13:25:17 EDT 2007


Nero,

On Samstag, 20. Oktober 2007, kitefree wrote:

> Recently I have been working on c++ program with uClinux-dist. And I
> found there seems to be some problem with using ucfront-g++ with
> libstdc++.a(gcc 3.4.4). As you can see how I build my C++ program,
> /home/nerokuo/uClinux/tools/ucfront-g++ arm-linux-g++ -D__PIC__ -fpic
> -msingle-pic-base -msoft-float -Wall -c main.cpp
> /home/nerokuo/uClinux/tools/ucfront-g++ arm-linux-g++
> -L/home/nerokuo/uClinux/uClibc/lib -Wl,-elf2flt -Wl,--fatal-warnings
> -o helloworld main.o -msoft-float -lstdc++

You missed "-fpic -msingle-pic-base" for the linker.
The linker needs this flags to select the correct version of the 
libraries.

regards
Wolfgang
-- 
Das Leben kann nur rückwärts verstanden,
muß aber vorwärts gelebt werden.


More information about the uClinux-dev mailing list