Boost C++ Libraries: Ticket #5770: Copy/Paste error in auto_link.hpp with BOOST_LIB_DIAGNOSTIC https://svn.boost.org/trac10/ticket/5770 <p> Hello, </p> <p> the pragma message ("Linking to lib file: ".... statement was copy/pasted during the development and wasn't corrected in the auto_link.hpp. As a result when the BOOST_AUTO_LINK_TAGGED macro is defined, the correct auto link option is emitted, for instance: </p> <p> #pragma comment(lib, "lib" "boost_chrono" "-mt" ".lib") </p> <p> but the comment has wrong library name: </p> <p> #pragma message ("Linking to lib file: " "lib" "boost_chrono" "-" "vc90" "-mt" "-" "1_47" ".lib") </p> <p> Problematic code is in auto_link.hpp starting line 364: </p> <pre class="wiki">#ifdef BOOST_AUTO_LINK_TAGGED # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".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 </pre><p> fixed code: </p> <pre class="wiki">#ifdef BOOST_AUTO_LINK_TAGGED # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib") # ifdef BOOST_LIB_DIAGNOSTIC # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib") # endif </pre><p> Not very important bug. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5770 Trac 1.4.3 John Maddock Sat, 20 Aug 2011 16:08:13 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5770#comment:1 https://svn.boost.org/trac10/ticket/5770#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73955" title="Fix typo in message. Fixes #5770.">[73955]</a>) Fix typo in message. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5770" title="#5770: Bugs: Copy/Paste error in auto_link.hpp with BOOST_LIB_DIAGNOSTIC (closed: fixed)">#5770</a>. </p> Ticket