Compile problem with boost thread and function libraries.
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
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
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
participants (2)
-
John Maddock
-
Matthew Dempsky