Subject: [Boost-bugs] [Boost C++ Libraries] #2226: boost::thread 1.36.0 /clr Link Error LNK2022
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-19 13:28:14
#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.36.0 | Severity: Showstopper
Keywords: clr dummy thread LNK2022 |
----------------------------------------+-----------------------------------
The boost thread library in release 1.36.0 is incompatible with Microsofts
/clr Common Language Runtime support.
Without /clr, the following compiles cleanly:
{{{
#include "boost/thread.hpp"
struct Thing {
void operator()() {}
};
void Run() {
Thing thing;
boost::thread thread(thing);
}
}}}
However, with /clr, the following error is observed:
error LNK2022: metadata operation failed (8013119F) : A TypeRef exists
which should, but does not, have a corresponding TypeDef: (dummy):
(0x01000019).
LINK : fatal error LNK1215: metadata operation failed (8013119F) :
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2226> 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:58 UTC