Boost logo

Boost :

From: Olivier Prat (Olivier.Prat_at_[hidden])
Date: 2003-04-29 08:18:08


Hello, I’m using boost ::threads and boost ::signals with Visual C++ 7.0 and
I have these damn link errors that I can’t remove:

 

error LNK2019: unresolved external symbol "__declspec(dllimport) public:
__thiscall boost::thread::thread(class boost::function0<void,class
_STL::allocator<class boost::function_base> > const &)"
(__imp_??0thread_at_boost@@QAE_at_ABV?$function0_at_XV?$allocator_at_Vfunction_base_at_boos
t@@@_STL@@@1@@Z)

 

error LNK2019: unresolved external symbol "__declspec(dllimport) public:
__thiscall boost::signals::detail::signal_base::signal_base(class
boost::function2<bool,class boost::any,class boost::any,class
_STL::allocator<class boost::function_base> > const &)"
(__imp_??0signal_base_at_detail@signals_at_boost@@QAE_at_ABV?$function2@_NVany_at_boost@
@V12_at_V?$allocator_at_Vfunction_base_at_boost@@@_STL@@@3@@Z

 

error LNK2019: unresolved external symbol "__declspec(dllimport) public:
class boost::signals::connection __thiscall
boost::signals::detail::signal_base_impl::connect_slot(class boost::any
const &,class boost::any const &,class _STL::vector<class
boost::signals::trackable const *,class _STL::allocator<class
boost::signals::trackable const *> > const &)"
(__imp_?connect_slot_at_signal_base_impl_at_detail@signals_at_boost@@QAE?AVconnection
@34_at_ABVany@4_at_0ABV?$vector_at_PBVtrackable@signals_at_boost@@V?$allocator_at_PBVtracka
ble_at_signals@boost@@@_STL@@@_STL@@@Z)

 

error LNK2019: symbole externe non résolu "__declspec(dllimport) public:
class _STL::vector<class boost::signals::trackable const *,class
_STL::allocator<class boost::signals::trackable const *> > & __thiscall
boost::signals::detail::slot_base::get_bound_objects(void)const "
(__imp_?get_bound_objects_at_slot_base_at_detail@signals_at_boost@@QBEAAV?$vector_at_PBV
trackable_at_signals@boost@@V?$allocator_at_PBVtrackable@signals_at_boost@@@_STL@@@_S
TL@@XZ)

 

I’ve compiled the boost libs with bjam and the vc7 toolset (I’ve tried with
msvc and msvc-stlport, since I use STLport and the result is the same). The
weird thing is that I call other methods on thread (join() for example) that
are properly linked. My project uses the multithreaded DLL runtime
librairies. Any idea of what might be happening? When I look into the built
DLLs and LIBs with dumpbin, the symbols all seem to be there except that
their decorated names don’t start with “__imp_?”. I’m not sure if this is
important or not…

 

Any help would be really appreciated!!!!

 

 



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk