Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost 1.34] Unsatisfied symbol "boost::thread::~thread()
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2011-01-23 03:41:41


Alexander Vinokur wrote:

> Hi,
>
> I have the following problem.
>
> Boost 1.34
> HP-UX B.11.23 U ia64
> aCC: HP C/aC++ B3910B A.06.25.01 [May 16 2010]
>
> // ------ vvv1.cpp ------
> #include <boost/thread.hpp>
>
> void tproc() {}
>
> int main()
> {
> boost::thread t(tproc);
> t.join();
> return 0;
> }
> // -----------------------
>
> Compilation-1.
>> aCC +DD64 -AA -mt -I$BOOST_HOME vvv1.cpp
> ld: Unsatisfied symbol "boost::thread::~thread()(complete)" in file vvv1.o
> ld: Unsatisfied symbol
> "boost::thread::thread(boost::function0<void,std::allocator<boost::function_base> >
> const&)(complete)" in file vvv1.o ld: Unsatisfied symbol "boost::thread::join()" in file vvv1.o 3
> errors.
>
>
> Compilation-2.
>> aCC +DD64 -AA -mt -lboost_thread-mt -I$BOOST_HOME vvv1.cpp
> ld: Can't find library for -lboost_thread-mt

You are missing -L option with a suitable value here. Please see documentation for
your compiler.

- Volodya

-- 
Vladimir Prus
Mentor Graphics
+7 (812) 677-68-40

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