uClibc++ application compilation error

Garrett Kajmowicz gkajmowi at tbaytel.net
Sat Sep 23 14:08:17 UTC 2006

On Saturday 23 September 2006 12:21, manjunatha sirinivasan wrote:
> Hi
>    Iam facing the problem  of compiling a C++ code
> with  the cross C++ compiler  of montavista

Ahh.  My employer's competitor.   :-)

> mips_fp_be-g++ -nostdlib -nodefaultlibs
> -Wl,-rpath=/opt/montavista/pro/devkit/mips/fp_be/target/lib
> -L /opt/montavista/pro/devkit/mips/fp_be/target/lib
> -lc
> /opt/montavista/pro/devkit/mips/fp_be/target/lib/crt1.o
> /opt/montavista/pro/devkit/mips/fp_be/target/lib/crti.o
> /opt/montavista/pro/devkit/mips/fp_be/target/lib/crtn.o
>  hello.cpp -o hello

It looks like you haven't actually linked against the c++ library.   I'd try 
adding -luClibc++ to the command line above.  You might also need -lgcc.
Finally, make sure that lib uClibc++ is properly cross-compiled as well.

-     Garrett

More information about the uClibc mailing list