Boost logo

Boost Users :

From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2007-02-03 20:46:44


Hi,

I am trying to compile the boost thread that I found here:
http://www-eleves-isia.cma.fr/documentation/BoostDoc/boost_1_29_0/libs/thread/example/thread.cpp

But i get the following error:

Can you please tell me what do i need to do to fix it?

./thread.o: In function `main':../thread.cpp:27: undefined reference
to `boost::thread::thread(boost::function0<void,
std::allocator<boost::function_base> > const&)'
:../thread.cpp:28: undefined reference to `boost::thread::join()'
:../thread.cpp:28: undefined reference to `boost::thread::~thread()'
:../thread.cpp:28: undefined reference to `boost::thread::~thread()'
./thread.o: In function `thread_alarm::operator()()':../thread.cpp:11:
undefined reference to `boost::xtime_get(boost::xtime*, int)'
:../thread.cpp:14: undefined reference to
`boost::thread::sleep(boost::xtime const&)'
collect2: ld returned 1 exit status
make: *** [sandbox] Error 1
make: Target `all' not remade because of errors.
Build complete for project sandbox


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