
I am in the middle of moving our development from the std STL to STLPort and I am having a problem with two Athlon boxes. SuSE Linux 9.0 gcc 3.3.1 STLPort 4.6.2 Boost 1.31 I am changing an existing application to use STLPort and I have successfully completed the transition on a number of Intel boxes. When I try to build on an Athlon box I get the following error message: undefined reference to `boost::thread::thread[in-charge](boost::function0<void, std::allocator<boost::function_base> > const&)' I'm linking against libboost_thread-gcc-mt-p-1_31 and libboost_date_time-gcc-mt-p-1_31. I can't see an obvious solution so I'm hoping someone has solved this problem already. ----------------------- Kenny Chamber http://gem-hs.org/contact.html

----- Original Message ----- From: "Kenny Chamber" <kenny@gem-hs.org>
undefined reference to `boost::thread::thread[in-charge](boost::function0<void, std::allocator<boost::function_base> > const&)'
I'm linking against libboost_thread-gcc-mt-p-1_31 and libboost_date_time-gcc-mt-p-1_31.
I can't see an obvious solution so I'm hoping someone has solved this problem already.
Just to make sure, did you also link against the stlport library, and did you put that library /after/ the boost libraries? This is often easily overlooked. best regards, Richard Peters

It's a good idea to put the library name in the subject line to alert its maintainers. Kenny Chamber wrote:
I am in the middle of moving our development from the std STL to STLPort and I am having a problem with two Athlon boxes.
SuSE Linux 9.0 gcc 3.3.1 STLPort 4.6.2 Boost 1.31
I am changing an existing application to use STLPort and I have successfully completed the transition on a number of Intel boxes. When I try to build on an Athlon box I get the following error message:
undefined reference to `boost::thread::thread[in-charge](boost::function0<void, std::allocator<boost::function_base> > const&)'
I'm linking against libboost_thread-gcc-mt-p-1_31 and libboost_date_time-gcc-mt-p-1_31.
I can't see an obvious solution so I'm hoping someone has solved this problem already.
----------------------- Kenny Chamber http://gem-hs.org/contact.html _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com

"David Abrahams" <dave@boost-consulting.com> wrote in message news:cps9qp$bd7$2@sea.gmane.org...
It's a good idea to put the library name in the subject line to alert its maintainers.
Kenny Chamber wrote:
I am in the middle of moving our development from the std STL to STLPort and I am having a problem with two Athlon boxes.
SuSE Linux 9.0 gcc 3.3.1 STLPort 4.6.2 Boost 1.31
I am changing an existing application to use STLPort and I have successfully completed the transition on a number of Intel boxes. When I try to build on an Athlon box I get the following error message:
undefined reference to `boost::thread::thread[in-charge](boost::function0<void, std::allocator<boost::function_base> > const&)'
I'm linking against libboost_thread-gcc-mt-p-1_31 and libboost_date_time-gcc-mt-p-1_31.
I can't see an obvious solution so I'm hoping someone has solved this problem already.
It's pretty hard to be certain without you posting any code, and I'm unfortunately unfamiliar with STLPort. It appears that a lot of other people have asked the same question from time to time; do any of the links at the following help? http://www.google.com/search?q=%22boost::thread::thread%5Bin-charge%5D%22&hl=en&lr=&filter=0 Mike
participants (4)
-
David Abrahams
-
Kenny Chamber
-
Michael Glassford
-
Richard Peters