[Boost-bugs] [Boost C++ Libraries] #5770: Copy/Paste error in auto_link.hpp with BOOST_LIB_DIAGNOSTIC

Subject: [Boost-bugs] [Boost C++ Libraries] #5770: Copy/Paste error in auto_link.hpp with BOOST_LIB_DIAGNOSTIC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-10 15:39:32


#5770: Copy/Paste error in auto_link.hpp with BOOST_LIB_DIAGNOSTIC
-------------------------------------------------+--------------------------
 Reporter: Nikolai Vorontsov <nick@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
  Version: Boost 1.47.0 | Severity: Cosmetic
 Keywords: |
-------------------------------------------------+--------------------------
 Hello,

 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:

 #pragma comment(lib, "lib" "boost_chrono" "-mt" ".lib")

 but the comment has wrong library name:

 #pragma message ("Linking to lib file: " "lib" "boost_chrono" "-" "vc90"
 "-mt" "-" "1_47" ".lib")



 Problematic code is in auto_link.hpp starting line 364:
 {{{
 #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
 }}}

 fixed code:
 {{{
 #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
 }}}

 Not very important bug.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5770>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC