Boost C++ Libraries: Ticket #6330: Sucess to build when use stlport 5.2.1, but link error.(MSVC8-10) https://svn.boost.org/trac10/ticket/6330 <p> Boost 1.48.0 success to build when use stlport 5.2.1, but when link to the library with following error: error LNK2001: unresolved external symbol "void <span class="underline">cdecl boost::re_detail::raise_runtime_error(class stlpd_std::runtime_error const &amp;)" (?raise_runtime_error@re_detail@boost@@YAXAEBVruntime_error@stlpd_std@@@Z) E:\<a class="missing wiki">WorkSpaces</a>\Visual Studio 2010\boost_test\boost_test\main.obj error LNK2001: unresolved external symbol "class stlpd_std::basic_string&lt;char,class stlpd_std::char_traits&lt;char&gt;,class stlpd_std::allocator&lt;char&gt; &gt; </span>cdecl boost::re_detail::w32_transform(unsigned int,char const *,char const *)" (?w32_transform@re_detail@boost@@YA?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@IPEBD0@Z) E:\<a class="missing wiki">WorkSpaces</a>\Visual Studio 2010\boost_test\boost_test\main.obj </p> <p> building configure for boost 1.48.0: set PYTHON=D:<br />Program Files (x86)<br />Python32 set INCLUDE=%STLPORT%\stlport;%PYTHON%<br />include;%INCLUDE%; set LIB=%STLPORT%<br />lib;%PYTHON%<br />libs;%LIB%; b2 --toolset=msvc-10.0 --build-type=complete stdlib=stlport --stagedir=stlport </p> <p> I have define _STLP_DEBUG and <span class="underline">STLPORT_DEBUG in my project.During in the building progress of boost, I found the b2 have used the headers of msvc, and link to stplort's libraries. </span></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6330 Trac 1.4.3 John Maddock Mon, 02 Jan 2012 11:45:56 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6330#comment:1 https://svn.boost.org/trac10/ticket/6330#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> This sort of issue is normally caused by some kind of binary incompatibilty between the libraries and your executable - unfortunately it's next to impossible to diagnose from a distance. The usual and easiest fix is to: </p> <ul><li>Create a static lib or dll project for the regex source in Your IDE and add all of libs/regex/src/*.cpp to it. Build using the same options as your executable. </li><li>Add the define BOOST_REGEX_NO_LIB to your applications project settings. </li><li>Add the lib/dll project as a dependency and rebuild. </li></ul><p> HTH, John. </p> Ticket