Jump to content
  • Advertisement
Sign in to follow this  
viperman1271

boost::bind problem

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!