Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12888: Linking with boost thread does not work on mingw/gcc 4.4
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-03-09 03:57:29
#12888: Linking with boost thread does not work on mingw/gcc 4.4
-------------------------------+----------------------
Reporter: anonymous | Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.63.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------
Comment (by anonymous):
Replying to [ticket:12888 anonymous]:
boost 1.63 when used mingw32 compiling x86 target[[BR]]
mingw32 version 4.4.0
Errors:
c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingw32.a(tlssup.o):tlssup.c:(.tls+0x0):
multiple definition of `_tls_used'
C:\boost\mingw/Lib/libboost_thread.a(tss_pe.o):tss_pe.cpp:(.rdata$T+0x0):
first defined here
modify âboost_1_63_0/libs/thread/src/win32/tss_pe.cppâ
{{{
#if defined(__MINGW64__) || (__MINGW64_VERSION_MAJOR) ||
(__MINGW32_MAJOR_VERSION >3) || \
((__MINGW32_MAJOR_VERSION==3) && (__MINGW32_MINOR_VERSION>=18))
I've changed it to:
#if defined(__MINGW64__) || (__MINGW64_VERSION_MAJOR) || (__MINGW32__) ||
(__MINGW32_MAJOR_VERSION >3) || \
((__MINGW32_MAJOR_VERSION==3) && (__MINGW32_MINOR_VERSION>=18))
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12888#comment:1> 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-03-09 04:01:44 UTC