Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   Unresolved symbol when using C++ STL (http://www.go4expert.com/forums/unresolved-symbol-using-cpp-stl-t18301/)

ansahahmed 2Jul2009 13:18

Unresolved symbol when using C++ STL
 
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,

SaswatPadhi 2Jul2009 17:15

Re: Unresolved symbol when using C++ STL
 
How do you expect us to analyze the errors without looking at your code ?!


All times are GMT +5.5. The time now is 09:41.