Linker errors with stlportstld.5.2.lib
Hi I have a simple test program which compiles in Release mode. I understand in debug mode I have to define __STL_DEBUG as boost libs are built with that symbol in debug mode. Defining that symbol forces me to link against stlportstld.5.2.lib version of stlport. On doing that I get several linker errors: 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::priv::__owned_list::~__owned_list(void)" (__imp_??1__owned_list@priv@stlpdmtx_std@@QAE@XZ) referenced in function "public: __thiscall stlpdmtx_std::vector<int,class stlpdmtx_std::allocator<int> >::~vector<int,class stlpdmtx_std::allocator<int> >(void)" (??1?$vector@HV?$allocator@H@stlpdmtx_std@@@stlpdmtx_std@@QAE@XZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >::~basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >(void)" (__imp_??1?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAE@XZ) referenced in function __unwindfunclet$??0?$basic_path@V?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@Upath_traits@filesystem@boost@@@filesystem@boost@@QAE@PBD@Z$0 1>libboost_system-vc90-mt-gdp-1_40.lib(error_code.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >::~basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >(void)" (__imp_??1?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAE@XZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::allocator<char>::~allocator<char>(void)" (__imp_??1?$allocator@D@stlpdmtx_std@@QAE@XZ) referenced in function "public: __thiscall boost::filesystem::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>(char const *)" (??0?$basic_path@V?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@Upath_traits@filesystem@boost@@@filesystem@boost@@QAE@PBD@Z) 1>libboost_system-vc90-mt-gdp-1_40.lib(error_code.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::allocator<char>::~allocator<char>(void)" (__imp_??1?$allocator@D@stlpdmtx_std@@QAE@XZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >(class stlpdmtx_std::allocator<char> const &)" (__imp_??0?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAE@ABV?$allocator@D@1@@Z) referenced in function "public: __thiscall boost::filesystem::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>(char const *)" (??0?$basic_path@V?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@Upath_traits@filesystem@boost@@@filesystem@boost@@QAE@PBD@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::allocator<char>::allocator<char>(void)" (__imp_??0?$allocator@D@stlpdmtx_std@@QAE@XZ) referenced in function "public: __thiscall boost::filesystem::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>(char const *)" (??0?$basic_path@V?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@Upath_traits@filesystem@boost@@@filesystem@boost@@QAE@PBD@Z) 1>libboost_system-vc90-mt-gdp-1_40.lib(error_code.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::allocator<char>::allocator<char>(void)" (__imp_??0?$allocator@D@stlpdmtx_std@@QAE@XZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl stlpdmtx_std::priv::__stl_debug_engine<bool>::_VerboseAssert(char const *,int,char const *,int)" (__imp_?_VerboseAssert@?$__stl_debug_engine@_N@priv@stlpdmtx_std@@SAXPBDH0H@Z) referenced in function "public: int & __thiscall stlpdmtx_std::vector<int,class stlpdmtx_std::allocator<int>
::operator[](unsigned int)" (??A?$vector@HV?$allocator@H@stlpdmtx_std@@@stlpdmtx_std@@QAEAAHI@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::priv::__owned_list::__owned_list(void *)" (__imp_??0__owned_list@priv@stlpdmtx_std@@QAE@PAX@Z) referenced in function "public: __thiscall stlpdmtx_std::vector<int,class stlpdmtx_std::allocator<int> >::vector<int,class stlpdmtx_std::allocator<int> >(class stlpdmtx_std::allocator<int> const &)" (??0?$vector@HV?$allocator@H@stlpdmtx_std@@@stlpdmtx_std@@QAE@ABV?$allocator@H@1@@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl stlpdmtx_std::__node_alloc::deallocate(void *,unsigned int)" (__imp_?deallocate@__node_alloc@stlpdmtx_std@@SAXPAXI@Z) referenced in function "public: void __thiscall stlpdmtx_std::allocator<int>::deallocate(int *,unsigned int)" (?deallocate@?$allocator@H@stlpdmtx_std@@QAEXPAHI@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl stlpdmtx_std::priv::__stl_debug_engine<bool>::_Assert(char const *,char const *,int)" (__imp_?_Assert@?$__stl_debug_engine@_N@priv@stlpdmtx_std@@SAXPBD0H@Z) referenced in function "public: void __thiscall stlpdmtx_std::allocator<int>::deallocate(int *,unsigned int)" (?deallocate@?$allocator@H@stlpdmtx_std@@QAEXPAHI@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >::empty(void)const " (__imp_?empty@?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QBE_NXZ) referenced in function "public: bool __thiscall boost::filesystem::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>::empty(void)const " (?empty@?$basic_path@V?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@Upath_traits@filesystem@boost@@@filesystem@boost@@QBE_NXZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > & __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> ::operator+=(char)" (__imp_??Y?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAEAAV01@D@Z) referenced in function "private: void __thiscall boost::filesystem::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>::m_append_separator_if_needed(void)" (?m_append_separator_if_needed@?$basic_path@V?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@Upath_traits@filesystem@boost@@@filesystem@boost@@AAEXXZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct stlpdmtx_std::priv::_DBG_iter<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct stlpdmtx_std::priv::_DbgTraits<struct stlpdmtx_std::_Nonconst_traits<char> > __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> ::end(void)" (__imp_?end@?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAE?AU?$_DBG_iter@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@U?$_DbgTraits@U?$_Nonconst_traits@D@stlpdmtx_std@@@23@@priv@2@XZ) referenced in function "private: void __thiscall boost::filesystem::basic_path<class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct boost::filesystem::path_traits>::m_append_separator_if_needed(void)" (?m_append_separator_if_needed@?$basic_path@V?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@Upath_traits@filesystem@boost@@@filesystem@boost@@AAEXXZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::priv::__owned_link::~__owned_link(void)" (__imp_??1__owned_link@priv@stlpdmtx_std@@QAE@XZ) referenced in function "public: __thiscall stlpdmtx_std::priv::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > ::~_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > (void)" (??1?$_DBG_iter_base@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@@priv@stlpdmtx_std@@QAE@XZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall stlpdmtx_std::priv::__owned_list::_Invalidate_all(void)" (__imp_?_Invalidate_all@__owned_list@priv@stlpdmtx_std@@QAEXXZ) referenced in function "private: void __thiscall stlpdmtx_std::vector<int,class stlpdmtx_std::allocator<int> >::_Invalidate_all(void)" (?_Invalidate_all@?$vector@HV?$allocator@H@stlpdmtx_std@@@stlpdmtx_std@@AAEXXZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::priv::__owned_link::__owned_link(class stlpdmtx_std::priv::__owned_link const &)" (__imp_??0__owned_link@priv@stlpdmtx_std@@QAE@ABV012@@Z) referenced in function "public: __thiscall stlpdmtx_std::priv::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > ::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > (struct stlpdmtx_std::priv::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > > const &)" (??0?$_DBG_iter_base@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@@priv@stlpdmtx_std@@QAE@ABU012@@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void * __cdecl stlpdmtx_std::__node_alloc::allocate(unsigned int &)" (__imp_?allocate@__node_alloc@stlpdmtx_std@@SAPAXAAI@Z) referenced in function "public: int * __thiscall stlpdmtx_std::allocator<int>::_M_allocate(unsigned int,unsigned int &)" (?_M_allocate@?$allocator@H@stlpdmtx_std@@QAEPAHIAAI@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char * __thiscall stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> ::end(void)" (__imp_?end@?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@QAEPADXZ) referenced in function "bool __cdecl stlpdmtx_std::priv::_Dereferenceable<struct stlpdmtx_std::priv::_DBG_iter<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct stlpdmtx_std::priv::_DbgTraits<struct stlpdmtx_std::_Nonconst_traits<char> >
(struct stlpdmtx_std::priv::_DBG_iter<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >,struct stlpdmtx_std::priv::_DbgTraits<struct stlpdmtx_std::_Nonconst_traits<char> > const &)" (??$_Dereferenceable@U?$_DBG_iter@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@U?$_DbgTraits@U?$_Nonconst_traits@D@stlpdmtx_std@@@23@@priv@stlpdmtx_std@@@priv@stlpdmtx_std@@YA_NABU?$_DBG_iter@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@U?$_DbgTraits@U?$_Nonconst_traits@D@stlpdmtx_std@@@23@@01@@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> ::size(void)const " (__imp_?size@?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@QBEIXZ) referenced in function "bool __cdecl stlpdmtx_std::priv::_Incrementable<struct stlpdmtx_std::priv::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > > (struct stlpdmtx_std::priv::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > > const &,int,struct stlpdmtx_std::random_access_iterator_tag const &)" (??$_Incrementable@U?$_DBG_iter_base@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@@priv@stlpdmtx_std@@@priv@stlpdmtx_std@@YA_NABU?$_DBG_iter_base@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@@01@HABUrandom_access_iterator_tag@1@@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char * __thiscall stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> ::begin(void)" (__imp_?begin@?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@QAEPADXZ) referenced in function "bool __cdecl stlpdmtx_std::priv::_Incrementable<struct stlpdmtx_std::priv::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > > (struct stlpdmtx_std::priv::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > > const &,int,struct stlpdmtx_std::random_access_iterator_tag const &)" (??$_Incrementable@U?$_DBG_iter_base@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@@priv@stlpdmtx_std@@@priv@stlpdmtx_std@@YA_NABU?$_DBG_iter_base@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@@01@HABUrandom_access_iterator_tag@1@@Z) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl stlpdmtx_std::__stl_throw_length_error(char const *)" (__imp_?__stl_throw_length_error@stlpdmtx_std@@YAXPBD@Z) referenced in function "protected: void __thiscall stlpdmtx_std::priv::_Vector_base<int,class stlpdmtx_std::allocator<int> ::_M_throw_length_error(void)const " (?_M_throw_length_error@?$_Vector_base@HV?$allocator@H@stlpdmtx_std@@@priv@stlpdmtx_std@@IBEXXZ) 1>StlPort_Test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void * __cdecl stlpdmtx_std::priv::__stl_debug_engine<bool>::_Get_container_ptr(class stlpdmtx_std::priv::__owned_link const *)" (__imp_?_Get_container_ptr@?$__stl_debug_engine@_N@priv@stlpdmtx_std@@SAPAXPBV__owned_link@23@@Z) referenced in function "public: class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > * __thiscall stlpdmtx_std::priv::_DBG_iter_base<class stlpdmtx_std::priv::_NonDbg_str<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > ::_Get_container_ptr(void)const " (?_Get_container_ptr@?$_DBG_iter_base@V?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@priv@stlpdmtx_std@@@priv@stlpdmtx_std@@QBEPAV?$_NonDbg_str@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@23@XZ) 1>libboost_system-vc90-mt-gdp-1_40.lib(error_code.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >(class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > const &)" (__imp_??0?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAE@ABV01@@Z) referenced in function "public: virtual class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > __thiscall `anonymous namespace'::generic_error_category::message(int)const " (?message@generic_error_category@?A0x2869e426@@UBE?AV?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@H@Z) 1>libboost_system-vc90-mt-gdp-1_40.lib(error_code.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >(char const *,class stlpdmtx_std::allocator<char> const &)" (__imp_??0?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAE@PBDABV?$allocator@D@1@@Z) referenced in function "public: virtual class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > __thiscall `anonymous namespace'::generic_error_category::message(int)const " (?message@generic_error_category@?A0x2869e426@@UBE?AV?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@H@Z) 1>libboost_system-vc90-mt-gdp-1_40.lib(error_code.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > & __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >::erase(unsigned int,unsigned int)" (__imp_?erase@?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAEAAV12@II@Z) referenced in function "public: virtual class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > __thiscall `anonymous namespace'::system_error_category::message(int)const " (?message@system_error_category@?A0x2869e426@@UBE?AV?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@H@Z) 1>libboost_system-vc90-mt-gdp-1_40.lib(error_code.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char & __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> >::operator[](unsigned int)" (__imp_??A?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QAEAADI@Z) referenced in function "public: virtual class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > __thiscall `anonymous namespace'::system_error_category::message(int)const " (?message@system_error_category@?A0x2869e426@@UBE?AV?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@H@Z) 1>libboost_system-vc90-mt-gdp-1_40.lib(error_code.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> ::size(void)const " (__imp_?size@?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@QBEIXZ) referenced in function "public: virtual class stlpdmtx_std::basic_string<char,class stlpdmtx_std::char_traits<char>,class stlpdmtx_std::allocator<char> > __thiscall `anonymous namespace'::system_error_category::message(int)const " (?message@system_error_category@?A0x2869e426@@UBE?AV?$basic_string@DV?$char_traits@D@stlpdmtx_std@@V?$allocator@D@2@@stlpdmtx_std@@H@Z) 1>C:\Users\MANMA\Desktop\StlPort_Test\Debug\StlPort_Test.exe : fatal error LNK1120: 26 unresolved externals
#include "stdafx.h" #include <boost/assign/std/vector.hpp> // for 'operator+=()' #include <boost/assert.hpp> using namespace std; using namespace boost::assign; // bring 'operator+=()' into scope #include "boost/filesystem.hpp" // includes all needed Boost.Filesystem declarations #include <iostream> // for std::cout int _tmain(int argc, _TCHAR* argv[]) { vector<int> values; values += 1,2,3,4,5,6,7,8,9; // insert values at the end of the container BOOST_ASSERT( values.size() == 9 ); BOOST_ASSERT( values[0] == 1 ); BOOST_ASSERT( values[8] == 9 ); boost::filesystem::path my_path( "some_dir/file.txt" ); return 0; } any help is appreciated -- View this message in context: http://www.nabble.com/Linker-errors-with-stlportstld.5.2.lib-tp25944396p2594... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (1)
-
Mangal