Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4614: Unable to statically link thread lib on mingw/win32
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-14 17:08:56
#4614: Unable to statically link thread lib on mingw/win32
-------------------------------------------------+--------------------------
Reporter: Danil Ilinykh <woodroof@â¦> | Owner: anthonyw
Type: Bugs | Status: closed
Milestone: Boost 1.45.0 | Component: thread
Version: Boost 1.44.0 | Severity: Showstopper
Resolution: fixed | Keywords:
-------------------------------------------------+--------------------------
Comment (by WFrane):
Replying to [comment:9 anthonyw]:
> Static linking seems to work fine now #4258 is fixed.
It appears that adding
'''#define BOOST_THREAD_USE_LIB'''
before other boost thread-related preprocessor directives is still
required for static linking when using MinGW (tested using Boost 1.45.0
and MinGW 4.4.1).
@gtoknu: This may be too late for you, but adding '''#define
BOOST_THREAD_USE_LIB''' before the include statements for the boost
headers worked for me. I also recompiled the boost libraries after
modifying config.hpp in the manner indicated by koradlow in comment 5, but
I'm not certain that doing so is necessary.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4614#comment:11> 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:05 UTC