Boost logo

Boost Users :

From: jean marc Mercier (jeanmarc.mercier_at_[hidden])
Date: 2008-03-18 06:37:15


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_at_std@@QAE_at_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_at_PAV?$function1_at_XPAXV?$allocator_at_Vfunction_base_at_boost@@@std@@@boost@@V?$allocator_at_PAV?$function1_at_XPAXV?$allocator_at_Vfunction_base_at_boost@@@std@@@boost@@@std@@@std@@QAE_at_XZ)

etc...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net