Re: [Boost-bugs] [Boost C++ Libraries] #4258: Linking with boost thread does not work on mingw/gcc 4.5

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4258: Linking with boost thread does not work on mingw/gcc 4.5
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-10 09:54:19


#4258: Linking with boost thread does not work on mingw/gcc 4.5
-------------------------------------------------+--------------------------
  Reporter: Danil Ilinykh <woodroof@…> | Owner: anthonyw
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.49.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------------------------+--------------------------
Changes (by anonymous):

  * status: closed => reopened
  * version: Boost 1.44.0 => Boost 1.49.0
  * resolution: fixed =>
  * milestone: Boost 1.45.0 => To Be Determined

Comment:

 boost 1.49 have this:


 {{{
 #if defined(__MINGW64__) || (__MINGW32_MAJOR_VERSION >3) || \
     ((__MINGW32_MAJOR_VERSION==3) && (__MINGW32_MINOR_VERSION>=18))

 }}}

 but mingw64 doesn't define
 {{{
 __MINGW64__
 }}}
  when compiling x86 target. I've changed it to:

 {{{
 #if defined(__MINGW64__) || (__MINGW64_VERSION_MAJOR) ||
 (__MINGW32_MAJOR_VERSION >3) || \
     ((__MINGW32_MAJOR_VERSION==3) && (__MINGW32_MINOR_VERSION>=18))

 }}}

 and it solve problem

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