Opened 11 years ago

Closed 11 years ago

#5770 closed Bugs (fixed)

Copy/Paste error in auto_link.hpp with BOOST_LIB_DIAGNOSTIC

Reported by: Nikolai Vorontsov <nick@…> Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.47.0 Severity: Cosmetic
Keywords: Cc:

Description

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.

Change History (1)

comment:1 by John Maddock, 11 years ago

Resolution: fixed
Status: newclosed

(In [73955]) Fix typo in message. Fixes #5770.

Note: See TracTickets for help on using tickets.