|
Boost Users : |
From: John Maddock (john_maddock_at_[hidden])
Date: 2002-09-08 05:50:09
> Trying to compile the example at the bottom of the thread_group page
> (http://www.boost.org/libs/thread/doc/thread.html#example-thread_group),
> results in the following error for me:
>
> undefined reference to
> `boost::thread_group::create_thread(boost::function0<void,
> boost::empty_function_policy, boost::empty_function_mixin,
> allocator<boost::function_base> > const &)'
>
> (I also had to rename the variable count to something else because I was
> getting a "`int count' redeclared as different kind of symbol" error and
> change boost::mutex::lock to boost::mutex::scoped_lock.)
>
> I linked with -lboost_thread -lpthread -lstlport and am using Debian 3.0
> with g++ 2.95.4, stlport 4.5.3, and boost 1.27.
Probably a silly question: but you did build libboost_thread with STLport
support turned on didn't you?
John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm
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