Boost logo

Boost Users :

From: Aljaz (aljaz.fajmut_at_[hidden])
Date: 2007-06-18 13:47:42


Simon Pickles pravi:
> Hi there,
>
> I am using boost::thread for the first time as part of boost::asio. I am
> trying to compile the chat_client.cpp example.
>
> When I uncomment the threading line, it won't link. Here's the line in
> question:
>
> boost::thread t(boost::bind(&boost::asio::io_service::run, &io_service));
>
> and heres the error:
>
> chat_client.obj : error LNK2019: unresolved external symbol "public:
> __thiscall boost::thread::~thread(void)" (??1thread_at_boost@@QAE_at_XZ)
> referenced in function _main
> chat_client.obj : error LNK2019: unresolved external symbol "public:
> void __thiscall boost::thread::join(void)" (?join_at_thread@boost@@QAEXXZ)
> referenced in function _main
> chat_client.obj : error LNK2019: unresolved external symbol "public:
> __thiscall boost::thread::thread(class boost::function0<void,class
> std::allocator<class boost::function_base> > const &)"
> (??0thread_at_boost@@QAE_at_ABV?$function0_at_XV?$allocator_at_Vfunction_base_at_boost@@@std@@@1@@Z)
>
> referenced in function _main
>
>
> I think I've done everything required. I've installed all the boost
> libraries with the Boost Consulting installer. I've added a few defines
> too:
>
> #define BOOST_ALL_NO_LIB
> // For linking with boost.thread not supported by Â?BOOST_ALL_DYN_LINKÂ?
> #define BOOST_THREAD_USE_DLL
> // Verbose
> #define BOOST_LIB_DIAGNOSTIC
>
>
> All to no avail. I'm not getting the 'boost-*.lib not found'
> message..... Just missing functions!
>
> Anyone any advice?
>
>
> Thanks
>
> Simon
>
> _________________________________________________________________
> Play your part in making history - Email Britain!
> http://www.emailbritain.co.uk/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

Boost Consulting installer doesnt build all libraries.
You should build them by hand (with bjam)..


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