[Boost-bugs] [Boost C++ Libraries] #8361: Linking problems with MSVC

Subject: [Boost-bugs] [Boost C++ Libraries] #8361: Linking problems with MSVC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-02 06:53:05

#8361: Linking problems with MSVC
 Reporter: andysem | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
 I've been [https://sourceforge.net/projects/boost-
 log/forums/forum/710022/topic/7273262 reported] a linking issue with MSVC
 8 when Boost.Spirit.Karma is used in several translation units of a static
 library. Apparently, the problem is with some static asserts that generate
 conflicting symbols in the library.

 Looking at the boost/spirit/home/support/assert_msg.hpp file and the FAQ,
 it seems this is a known problem, and defining
 BOOST_SPIRIT_DONT_USE_MPL_ASSERT_MSG=1 should work around this issue.
 However, this macro is not defined anywhere in the code which means the
 user has to discover this problem himself and then look for the solution.
 It would be better if the library defined the macro automatically for the
 compilers that are known to be affected by this problem (at least, MSVC 8
 for now).

 As a side note, it might be worthwhile to use BOOST_STATIC_ASSERT_MSG
 instead of either BOOST_STATIC_ASSERT or BOOST_MPL_ASSERT_MSG whenever
 static_assert is supported by the compiler.

Ticket URL: <https://svn.boost.org/trac/boost/ticket/8361>
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:12 UTC