Thread: Compiling STL app on FreeBSD

  1. #1
    sockets mad
    Join Date
    Mar 2002
    Posts
    126

    Compiling STL app on FreeBSD

    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

  2. #2
    sockets mad
    Join Date
    Mar 2002
    Posts
    126
    my bad, I used gcc and not g++

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Problems compiling this SDL app
    By Rider in forum C++ Programming
    Replies: 3
    Last Post: 03-27-2007, 12:22 PM
  3. best program to start
    By gooddevil in forum Networking/Device Communication
    Replies: 4
    Last Post: 05-28-2004, 05:56 PM
  4. freebsd and redhat dual boot.
    By xddxogm3 in forum Linux Programming
    Replies: 1
    Last Post: 05-09-2004, 06:06 PM
  5. Win32 App not compiling???
    By grmoo in forum C++ Programming
    Replies: 10
    Last Post: 09-13-2002, 07:39 AM