I am using Visual C++ 2010 and created a CLR EXE debug project and wrote a function, which I am able to call from main in my program. If I take the exact same code and put it in a dll, then I get a compile error
from the line
m_thread=boost::shared_ptr<boost::thread>( new boost::thread( boost::bind( &MyClass::Work, this ) ) );
The error message is
error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (dummy): (0x01000022).
I have no idea what the problem is since this works perfectly in the EXE project and the dll works fine if I use .NET managed threads instead.