Re: [Boost-bugs] [Boost C++ Libraries] #4614: Unable to statically link thread lib on mingw/win32

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: 2012-02-14 16:55:21


#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 poiuz):

 Replying to [comment:11 WFrane]:
> 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).

 It is still necessary with Boost 1.48 and MinGW GCC 4.6.2.
 Without '''#define BOOST_THREAD_USE_LIB''' the example
 [http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/tutorial/tuttimer5.html
 Timer5] from the Boost.Asio tutorial cannot be linked to the static thread
 library.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4614#comment:14>
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