Boost logo

Boost :

From: Thomas Porschberg (thomas.porschberg_at_[hidden])
Date: 2003-01-31 04:26:29


Hi,

I compiled boost_1_29_0 libraries with gcc-3.2.1 ,
copied the libboost_thread.a library to HOME and tried to compile
a small thread test program:

with:

g++ -I/opt/boost_1_29_0 -L/home/pberg -lboost_thread -lpthread tt.cc

I get:

/tmp/ccjTcBBI.o: In function `main':
/tmp/ccjTcBBI.o(.text+0x44): undefined reference to `boost::thread::thread[in-charge](boost::function0<void, boost::empty_function_policy, boost::empty_function_mixin, std::allocator<boost::function_base> > const&)'
/tmp/ccjTcBBI.o(.text+0xca): undefined reference to `boost::thread::thread[in-charge](boost::function0<void, boost::empty_function_policy, boost::empty_function_mixin, std::allocator<boost::function_base> > const&)'
/tmp/ccjTcBBI.o(.text+0x11b): undefined reference to `boost::thread::join()'
/tmp/ccjTcBBI.o(.text+0x126): undefined reference to `boost::thread::join()'
/tmp/ccjTcBBI.o(.text+0x139): undefined reference to `boost::thread::~thread [in-charge]()'
/tmp/ccjTcBBI.o(.text+0x149): undefined reference to `boost::thread::~thread [in-charge]()'
/tmp/ccjTcBBI.o(.text+0x15c): undefined reference to `boost::thread::~thread [in-charge]()'
/tmp/ccjTcBBI.o(.text+0x175): undefined reference to `boost::thread::~thread [in-charge]()'
collect2: ld returned 1 exit status

The library is located in /home/pberg.

Whats wrong here?

Please give a hint,
Thomas

-- 
If the map and the terrain disagree, trust the terrain.
Swiss army aphorism

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk