Subject: [Boost-bugs] [Boost C++ Libraries] #7074: [thread] Multiply defined symbol boost::allocator_arg
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-04 09:31:43
#7074: [thread] Multiply defined symbol boost::allocator_arg
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.50.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
I'm updating from boost 1_49 to 1_50, a project that uses pre-compiled
headers and MSVC 2010. I find I'm getting:
{{{
shared.lib(stdafx.obj) : error LNK2005: "struct
boost::container::allocator_arg_t boost::allocator_arg"
(?allocator_arg_at_boost@@3Uallocator_arg_t_at_container@1_at_A) already defined in
stdafx.obj}}}
}}}
and consequently:
{{{
fatal error LNK1169: one or more multiply defined symbols found
}}}
I'm wondering if perhaps the declaration of allocator_arg in
thread/detail/memory.hpp should be:
{{{
BOOST_STATIC_CONSTEXPR allocator_arg_t allocator_arg = {};
}}}
P.S. I feel I'm really sticking my neck out commenting on your code, but
it's the only thing that makes sense to me.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7074> 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:09 UTC