1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unresolved symbol when using C++ STL

Discussion in 'C++' started by ansahahmed, Jul 2, 2009.

  1. ansahahmed

    ansahahmed New Member

    Joined:
    May 30, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I am using templates and STL (Maps and Algorithms) for the first time in our project. We haven't used any template and STL before.

    When i try to compile code in Solaris i am getting follwing errors. Do I need to include any header files or anything else to resove this.


    ====================================
    /nodeb_top/func/kos/torn/host/sun4-solaris2/bin/../lib/gcc-lib/powerpc-wrs-vxworks/gcc-2.96/../../../../include/g++-3/stl_alloc.h:533: undefined reference to `__default_alloc_template<true, 0>::_S_start_free'

    The Unresloved symbol found ==>> U _$_9bad_alloc U _t23__malloc_alloc_template1i0$__malloc_alloc_oom_handler U _t24__default_alloc_template2b1i0$_S_end_free U _t24__default_alloc_template2b1i0$_S_free_list U _t24__default_alloc_template2b1i0$_S_heap_size U _t24__default_alloc_template2b1i0$_S_start_free U _vt$9bad_alloc U _vt$9exception


    =======================================


    Thanks in Advance,
     
  2. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    How do you expect us to analyze the errors without looking at your code ?!
     

Share This Page