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: 2010-10-11 11:38:05


#4614: Unable to statically link thread lib on mingw/win32
-------------------------------------------------+--------------------------
  Reporter: Danil Ilinykh <woodroof@…> | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.44.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------------------------+--------------------------

Comment (by koradlow@…):

 I recompiled the lib with the proposed changes to config.hpp:40

 {{{
 if defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN) || defined(MINGW32) ||
 defined(BOOST_MINGW32)
 }}}
 But I still get the same linker error as mentioned above trying to link
 statically.
 Using boost 1.44, mingw 3.15 and gcc 4.4.0, dynamically linking works fine
 though

 This is my link command which causes the errors
 {{{
 g++.exe -static -o .../main.o -L/D/boost_1_44_0/stage/lib
 /D/boost_1_44_0/stage/lib/libboost_thread-mgw44-mt-sd-1_44.a
 }}}


 btw: I also had to apply this patch
 https://svn.boost.org/trac/boost/ticket/4315

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