Boost logo

Boost Users :

From: Simon Pickles (sipickles_at_[hidden])
Date: 2007-06-18 09:01:00


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