boost::bind problem

This topic is 3732 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hi All I'm new with the boost libraries and I'm trying to use boost::thread. I have successfully done so, but then I ran into a problem trying to use threading with class member functions. I researched the problem and found that I should use boost::bind. However, anytime I try to use boost::bind I get the following errors Error 1 error LNK2019: unresolved external symbol __invalid_parameter_noinfo referenced in function "public: bool __thiscall std::list<class boost::thread *,class std::allocator<class boost::thread *> >::_Const_iterator<1>::operator==(class std::list<class boost::thread *,class std::allocator<class boost::thread *> >::_Const_iterator<1> const &)const " (??8?$_Const_iterator@$00@?$list@PAVthread@boost@@V?$allocator@PAVthread@boost@@@std@@@std@@QBE_NABV012@@Z) FILE: libboost_thread-vc80-mt-s-1_34_1.lib Error 2 error LNK2001: unresolved external symbol __invalid_parameter_noinfo FILE: libboost_thread-vc80-mt-s-1_34_1.lib Error 3 error LNK2001: unresolved external symbol __invalid_parameter_noinfo FILE: libboost_thread-vc80-mt-s-1_34_1.lib Am I missing an library somewhere that I haven't linked? I would appreciate any help.

Share on other sites
A reduced program that exhibits the problem would be most useful. bind is a header-only library, so it appears your linking against the correct libs.

Share on other sites
Thanks for the reply. I did figure out the problem, as soon as I used a DLL instead of a static library everything worked. Does anyone know how to use a static library and avoid this error?