Can anyone tell me how to compile an STL application using gcc 3.3.3 on FreeBSD 5.2?
I get errors at the link stage. These are as follows:
Code:
/var/tmp//ccy9Msub.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
/var/tmp//ccPyNUAP.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
/var/tmp//cczifVt0.o: In function `std::vector<cnx_inf, std::allocator<cnx_inf> >::_M_insert_aux(__gnu_cxx::__normal_iterator<cnx_inf*, std::vector<cnx_inf, std::allocator<cnx_inf> > >, cnx_inf const&)':
/var/tmp//cczifVt0.o(.gnu.linkonce.t._ZNSt6vectorI7cnx_infSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_+0x1b4): undefined reference to `__cxa_begin_catch'
/var/tmp//cczifVt0.o(.gnu.linkonce.t._ZNSt6vectorI7cnx_infSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_+0x1f1): undefined reference to `__cxa_rethrow'
/var/tmp//cczifVt0.o(.gnu.linkonce.t._ZNSt6vectorI7cnx_infSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_+0x1fc): undefined reference to `__cxa_end_catch'
/var/tmp//cczifVt0.o: In function `std::__simple_alloc<cnx_inf, std::__default_alloc_template<true, 0> >::deallocate(cnx_inf*, unsigned)':
/var/tmp//cczifVt0.o(.gnu.linkonce.t._ZNSt14__simple_allocI7cnx_infSt24__default_alloc_templateILb1ELi0EEE10deallocateEPS0_j+0x25): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned)'
/var/tmp//cczifVt0.o: In function `std::__simple_alloc<cnx_inf, std::__default_alloc_template<true, 0> >::allocate(unsigned)':
/var/tmp//cczifVt0.o(.gnu.linkonce.t._ZNSt14__simple_allocI7cnx_infSt24__default_alloc_templateILb1ELi0EEE8allocateEj+0x29): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned)'
/var/tmp//cczifVt0.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
Is there any special command line I need to specify when compiling STL programs?
Many thanks,
Daniel Briley