boost/thread/detail/singleton.hpp : link error with VS 2008 and \clr option

Hello, I am using boost 1.34.1 and Visual C++ 2008. I use, among other boost facilities, the threaded singleton pattern included in #include <boost/thread/detail/singleton.hpp> This singleton just work fine when compiled withouth the /clr (common langage runtime) option. But, when the \clr option is active, I get 6 link error (LNK2019) : see bottom of message. At present time, the only workaround I have found is to comment the #include <boost/thread/detail/config.hpp> contained in <boost/thread/detail/singleton.hpp>. Did I misused something ? Thank you in advance for suggestions in this direction. Jean-Marc 1>libboost_thread-vc80-mt-gd-1_34_1.lib(tss.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ) referenced in function "public: __thiscall std::_Vector_val<class boost::function1<void,void *,class std::allocator<class boost::function_base> > *,class std::allocator<class boost::function1<void,void *,class std::allocator<class boost::function_base> > *> >::~_Vector_val<class boost::function1<void,void *,class std::allocator<class boost::function_base> > *,class std::allocator<class boost::function1<void,void *,class std::allocator<class boost::function_base> > *> >(void)" (??1?$_Vector_val@PAV?$function1@XPAXV?$allocator@Vfunction_base@boost@@@std@@@boost@@V?$allocator@PAV?$function1@XPAXV?$allocator@Vfunction_base@boost@@@std@@@boost@@@std@@@std@@QAE@XZ) etc...
participants (1)
-
jean marc Mercier