Re: [Boost-bugs] [Boost C++ Libraries] #4839: boost_thread will not build with MinGW-w64 and bjam on Windows 7

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4839: boost_thread will not build with MinGW-w64 and bjam on Windows 7
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-04 19:59:05


#4839: boost_thread will not build with MinGW-w64 and bjam on Windows 7
--------------------------------------+-------------------------------------
  Reporter: fatman@… | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.46.0 | Component: thread
   Version: Boost Development Trunk | Severity: Showstopper
Resolution: | Keywords:
--------------------------------------+-------------------------------------

Comment (by fatman@…):

 I had a last-ditch poke around in Boost's internals and it looks like I
 found a workaround. :D

 Thanks to the OP on bug 4804 for the clue.

 Applying this patch to boost/detail/interlocked.hpp allows Boost.Thread to
 build (hopefully not breaking something else):

 {{{
 9a10,11
> #define BOOST_USE_WINDOWS_H 1
>
 }}}

 Obviously this is not a proper fix; I'm guessing it breaks Boost.Thread on
 other platforms than Windows. It can be applied to Windows x64 build
 environments individually.

 Glad I don't have to ditch Boost after all. :)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4839#comment:20>
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:06 UTC