I have decided to include STL into our new project, since it gets tiresome to reinvent the wheel, which we had to do on our last project. Own string classes, own containers and so on.
I have downloaded the latest version of stlport 4.5.3, uncommented the _STLP_NO_OWN_IOSTREAMS define, added the directory to the include files section.
My simple code uses the following:
The compiling goes well, but the linking gives me:
teststlport.obj : error LNK2019: unresolved external symbol "private: static void * __cdecl _STL::__malloc_alloc<0>::_S_oom_malloc(unsigned int)" (?_S_oom_malloc@?$__malloc_alloc@$0A@@_STL@@CAPAXI@Z) referenced in function "public: static void * __c
decl _STL::__malloc_alloc<0>::allocate(unsigned int)" (?allocate@?$__malloc_alloc@$0A@@_STL@@SAPAXI@Z)
ARMDbg/teststlport.exe : fatal error LNK1120: 1 unresolved externals
Whheea!
Any one have any ideas?
I would really like to be able to setup a dev environment of stlport, evc and visual studio .net any one that have done that?
/Okku
I have downloaded the latest version of stlport 4.5.3, uncommented the _STLP_NO_OWN_IOSTREAMS define, added the directory to the include files section.
My simple code uses the following:
- Code:
#include <vector>
...
std::vector<int> v(10);
The compiling goes well, but the linking gives me:
teststlport.obj : error LNK2019: unresolved external symbol "private: static void * __cdecl _STL::__malloc_alloc<0>::_S_oom_malloc(unsigned int)" (?_S_oom_malloc@?$__malloc_alloc@$0A@@_STL@@CAPAXI@Z) referenced in function "public: static void * __c
decl _STL::__malloc_alloc<0>::allocate(unsigned int)" (?allocate@?$__malloc_alloc@$0A@@_STL@@SAPAXI@Z)
ARMDbg/teststlport.exe : fatal error LNK1120: 1 unresolved externals
Whheea!
Any one have any ideas?
I would really like to be able to setup a dev environment of stlport, evc and visual studio .net any one that have done that?
/Okku