Boost C++ Libraries: Ticket #5315: address-model and architecture should be reflected in library naming https://svn.boost.org/trac10/ticket/5315 <p> Hello, </p> <p> i am using boost in projects that need to be build in versions with 32Bit and 64Bit Architectures on the windows platform. Using appropriate naming schemes i can deploy the executables and dlls in the same directory. Only boost libraries must be handled different, because the 32Bit and 64Bit versions end up with the same library name. </p> <p> To resolve this issue, i suggest expanding the naming scheme to include the target architecture. </p> <p> For example on windows this would change </p> <pre class="wiki">boost_regex-vc100-mt-d-1_46.lib/ boost_regex-vc100-mt-d-1_46.dll </pre><p> to </p> <pre class="wiki">boost_regex-vc100-amd64-mt-d-1_46.lib/ boost_regex-vc100-amd64-mt-d-1_46.dll </pre><p> Best regards<br /> Sönke Schau </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5315 Trac 1.4.3 boost@… Tue, 30 Sep 2014 17:21:15 GMT <link>https://svn.boost.org/trac10/ticket/5315#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5315#comment:1</guid> <description> <p> Hello! <br /> After all the years there is some progress here: <br /> using --buildid= on the b2 commandline it is now possible to generate libraries and dlls with different names. The only missing link is to support buildid in the autolink process.<br /> I therefor suppose to support a new (optional) variable BOOST_LIB_BUILDID and change the autolink coding in auto_link.hpp: </p> <pre class="wiki">... #elif defined(BOOST_AUTO_LINK_NOMANGLE) # pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") # ifdef BOOST_LIB_DIAGNOSTIC # pragma message ("Linking to lib file: " BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") # endif &gt;&gt; Add this &gt;&gt; #elif defined(BOOST_LIB_BUILDID) # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION "-" BOOST_LIB_BUILDID ".lib") # ifdef BOOST_LIB_DIAGNOSTIC # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION "-" BOOST_LIB_BUILDID ".lib") # endif &lt;&lt; Add this &lt;&lt; #else # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") # ifdef BOOST_LIB_DIAGNOSTIC # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") # endif #endif ... </pre><p> <br /> This is all optional and will not break any existing behavior. <br /> Best regards<br /> Sönke Schau </p> </description> <category>Ticket</category> </item> <item> <author>boost@…</author> <pubDate>Tue, 30 Sep 2014 17:28:57 GMT</pubDate> <title>type, version, component changed; owner set https://svn.boost.org/trac10/ticket/5315#comment:2 https://svn.boost.org/trac10/ticket/5315#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>type</strong> <span class="trac-field-old">Feature Requests</span> → <span class="trac-field-new">Patches</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.45.0</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">config</span> </li> </ul> Ticket boost@… Wed, 01 Oct 2014 08:30:26 GMT <link>https://svn.boost.org/trac10/ticket/5315#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5315#comment:3</guid> <description> <p> Sorry i forgot BOOST_STRINGIZE() around BOOST_LIB_BUILDID. This is the working addendum: </p> <pre class="wiki">#elif defined(BOOST_LIB_BUILDID) # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION "-" BOOST_STRINGIZE(BOOST_LIB_BUILDID) ".lib") # ifdef BOOST_LIB_DIAGNOSTIC # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION "-" BOOST_STRINGIZE(BOOST_LIB_BUILDID) ".lib") # endif </pre><p> Regards Sönke </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 02 Oct 2014 17:24:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5315#comment:4 https://svn.boost.org/trac10/ticket/5315#comment:4 <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">fixed</span> </li> </ul> <p> Thanks, applied in <a class="ext-link" href="https://github.com/boostorg/config/commit/d3c1db5436a2fb4682e15590f2d344d749579b31"><span class="icon">​</span>https://github.com/boostorg/config/commit/d3c1db5436a2fb4682e15590f2d344d749579b31</a> </p> Ticket