Re: [Boost-bugs] [Boost C++ Libraries] #2226: boost::thread 1.36.0 /clr Link Error LNK2022

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2226: boost::thread 1.36.0 /clr Link Error LNK2022
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-28 12:51:51


#2226: boost::thread 1.36.0 /clr Link Error LNK2022
-----------------------------------------+----------------------------------
  Reporter: benjamin.sternlieb_at_[hidden] | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.36.0 | Component: thread
   Version: Boost 1.37.0 | Severity: Showstopper
Resolution: | Keywords: clr dummy thread LNK2022
-----------------------------------------+----------------------------------
Changes (by roffe_at_[hidden]):

 * cc: roffe_at_[hidden] (added)

Comment:

 The linker Error LNK2022 when compiling with /clr can be resolved by
 adding

 {{{
 namespace boost {
         struct thread::dummy {};
 }
 }}}

 after the inclusion of <boost/thread/thread.hpp>

 Dynamically linked everything seems to work. However when statically
 linked, the application still fails to initialize with error 0xc000007b
 (which seems to be a different problem arising of the use of an
 undocumented PE hook mechanism).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2226#comment:2>
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:49:59 UTC