Alle 00:32, giovedì 8 febbraio 2007, Matthew Natalier ha scritto:

> These should show how to set up build lines for building c++ apps
> with STLport (which is the standard C library used in the uClinux-
> dist).  But these are broken at the moment - I'll send a patch in later.
I didn't knew nothing about STL... 
I was thinking c++ support was in uClibc and that some features like string 
was simply missing... now all is a bit more clear... 

> This is what you need to do.
>
> Step 1
[...]

I have followed the steps, selected STLport to compile, make a lib_clean and 
lib_only and modified my app Makefile.
But now I have a lot of linking error about the following undefined reference:

ucfront-g++ 
arm-linux-g++  -L/home/francesco/DataRec/uClinux-dist/lib/STLport/lib -o 
datarec datarec.o modbus.o led.o 
gestione_seriale.o -lpthread -lm -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
datarec.o: In function `DataRec::ControllaUSB()':
/home/francesco/DataRec/uClinux-dist/include/STLport/stl/_new.h:92: undefined 
reference to `operator delete(void*)'

datarec.o: In function `std::__node_alloc<false, 0>::_S_chunk_alloc(unsigned 
int, int&)':
/home/francesco/DataRec/uClinux-dist/include/STLport/stl/_new.h:91: undefined 
reference to `operator new(unsigned int)'

/home/francesco/DataRec/uClinux-dist/lib/libstdc++.a(dll_main.o): In function 
`std::__Named_exception::~__Named_exception()':
dll_main.cpp:(.text+0x1c): undefined reference to 
`std::exception::~exception()'

/home/francesco/DataRec/uClinux-dist/lib/libstdc++.a(dll_main.o): In function 
`std::__stl_throw_overflow_error(char const*)':
dll_main.cpp:(.text+0x6f4): undefined reference to `__cxa_allocate_exception'
dll_main.cpp:(.text+0x740): undefined reference to `operator delete(void*)'
dll_main.cpp:(.text+0x760): undefined reference to `__cxa_throw'

/home/francesco/DataRec/uClinux-dist/lib/libstdc++.a(dll_main.o): In function 
`.L606':
dll_main.cpp:(.text+0x794): undefined reference to `__gxx_personality_sj0'

/home/francesco/DataRec/uClinux-dist/lib/libstdc++.a(dll_main.o):
(.gnu.linkonce.d._ZTISt17__Named_exception+0x0): undefined reference to 
`vtable for __cxxabiv1::__si_class_type_info'

/home/francesco/DataRec/uClinux-dist/lib/libstdc++.a(dll_main.o):
(.gnu.linkonce.d._ZTISt17__Named_exception+0x8): undefined reference to 
`typeinfo for std::exception'

Also the examples in cxxtest fail with the same linker errors.

Maybe there is a particular way to compile the STL lib? I have read the README 
in /lib/STLport but I didn't found any usefull hint. I have also seen that 
there are many config file in stlport/config but I can't figure out how to 
use them.

Any help is obvioulsy appreciated! :-D

Best regards
Francesco
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to