Boost C++ Libraries: Ticket #11253: BOOST_LIB_PREFIX problem with boost 1.58 and Visual C++ 2013 https://svn.boost.org/trac10/ticket/11253 <p> I've successfully compiled both static and shared boost libraries with </p> <blockquote> <p> b2 variant=release link=shared runtime-link=shared threading=multi </p> </blockquote> <p> and </p> <blockquote> <p> b2 variant=debug link=shared runtime-link=shared threading=multi </p> </blockquote> <p> When trying to compile a small sample using boost_filesystem only, the linker complaints about a missing libboost_filesystem&lt;etc&gt;.lib (both with static -MT and dynamic -MD options): in fact, all the required *.lib archives are present in the right path, but their name begins with boost_, not *LIB*boost_. </p> <p> I've had to fix boost/config/auto_link.hpp line 367, changing the definition of BOOST_LIB_PREFIX to "" instead of "lib" to get the automatic linkage work properly. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11253 Trac 1.4.3 Steven Watanabe Fri, 01 May 2015 17:15:27 GMT <link>https://svn.boost.org/trac10/ticket/11253#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11253#comment:1</guid> <description> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11253" title="#11253: Bugs: BOOST_LIB_PREFIX problem with boost 1.58 and Visual C++ 2013 (closed: invalid)">anonymous</a>: </p> <blockquote class="citation"> <p> I've successfully compiled both static and shared boost libraries with </p> <blockquote> <p> b2 variant=release link=shared runtime-link=shared threading=multi </p> </blockquote> <p> and </p> <blockquote> <p> b2 variant=debug link=shared runtime-link=shared threading=multi </p> </blockquote> </blockquote> <p> No, you haven't. You only compiled the shared libs. Try "link=static,shared" if you want both. </p> <p> The file boost_xxx.lib is not a static library. It's the import library for boost_xxx.dll. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 04 May 2015 11:18:02 GMT</pubDate> <title>status, component changed; resolution set https://svn.boost.org/trac10/ticket/11253#comment:2 https://svn.boost.org/trac10/ticket/11253#comment:2 <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">invalid</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">config</span> </li> </ul> <p> Steven has answered your question correctly - you have dynamic import libraries not static ones. If your intention was to link to the dynamic libraries, then please define BOOST_ALL_DYN_LINK when building your code. See <a href="http://www.boost.org/doc/libs/1_58_0/libs/config/doc/html/index.html#boost_config.configuring_boost_for_your_platform.user_settable_options">http://www.boost.org/doc/libs/1_58_0/libs/config/doc/html/index.html#boost_config.configuring_boost_for_your_platform.user_settable_options</a>. </p> Ticket