Opened 12 years ago

Closed 12 years ago

#4563 closed Bugs (fixed)

BOOST_AUTO_LINK_TAGGED broken due to misspelled pragma

Reported by: Pekka Seppänen <pexu+boost@…> Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.44.0 Severity: Problem
Keywords: auto_link BOOST_AUTO_LINK_TAGGED commentcomment C4068 Cc:

Description

Noticed this while surfing around the source code:

As of [61805] BOOST_AUTO_LINK_TAGGED feature was added. However, the implementation in the file boost/config/auto_link.hpp:365 is currently broken as pragma reads:

#  pragma commentcomment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib")

even though it should say:

#  pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib")

as stated in the original ticket #4041. Because at least MSVC8 emits a mere C4068 (Unknown pragma) warning, this probably went undetected.

Change History (1)

comment:1 by John Maddock, 12 years ago

Resolution: fixed
Status: newclosed

(In [64885]) Fix typo in auto-linking code. Fixes #4563.

Note: See TracTickets for help on using tickets.