Boost logo

Boost-Build :

Subject: Re: [Boost-build] VS2010: unresolved external...std::_String_base::_Xran
From: xmueller (customer001_at_[hidden])
Date: 2010-08-18 07:21:50


this has been solved with boost 1.44

xmueller wrote:
>
> Hello,
> i have VS2008 and VS2010 installed on my machine.
> My VS2008 projects has been linked against boost142. The boost libs has
> been build with VS2008.
>
> I am trying to migrate to VS2010 and boost 1.43.
> I could build all libs with VS2010 - i guess, but i am not sure.
> The boost libs names are like boost-regex-vc100-mt...
>
> so this seems to point to be build by VC2010.
>
> However, when linking my projects (in VS2010) using boostlibs (143, buit
> with VS2010), i get
> linker errrors:
>
> 1>libboost_thread-vc100-mt-s-1_43.lib(thread.obj) : error LNK2019:
> unresolved external symbol "public: static void __cdecl
> std::_String_base::_Xran(void)" (?_Xran@_String_base_at_std@@SAXXZ)
> referenced in function "public: class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > & __thiscall
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >::erase(unsigned int,unsigned int)"
> (?erase@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAEAAV12_at_II@Z)
> 1>libboost_system-vc100-mt-s-1_43.lib(error_code.obj) : error LNK2001:
> unresolved external symbol "public: static void __cdecl
> std::_String_base::_Xran(void)" (?_Xran@_String_base_at_std@@SAXXZ)
> 1>libboost_thread-vc100-mt-s-1_43.lib(thread.obj) : error LNK2019:
> unresolved external symbol "public: static void __cdecl
> std::_String_base::_Xlen(void)" (?_Xlen@_String_base_at_std@@SAXXZ)
> referenced in function "protected: bool __thiscall
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >::_Grow(unsigned int,bool)"
> (?_Grow@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@IAE_NI_N_at_Z)
> 1>libboost_system-vc100-mt-s-1_43.lib(error_code.obj) : error LNK2001:
> unresolved external symbol "public: static void __cdecl
> std::_String_base::_Xlen(void)" (?_Xlen@_String_base_at_std@@SAXXZ)
>
> Some information:
>
> - In my projects, only the boost143 directories inclucded.
> - this is my bjam command
> bjam --toolset=msvc-10.0 --build-dir="libs" --build-type=complete stage
> threading=multi link=static runtime-link=static
>
> find attached the build log.
>
> Anyone has an idea, why i get those linker errors ?
> thank you http://old.nabble.com/file/p29449162/bjam.log bjam.log
>
>
>
>

-- 
View this message in context: http://old.nabble.com/VS2010%3A-unresolved-external...std%3A%3A_String_base%3A%3A_Xran-tp29449162p29470137.html
Sent from the Boost - Build mailing list archive at Nabble.com.

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk