STLPort linking error

Hi, 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. Thanks in advance, Ian. __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail

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.
If you see std:: in the error message then that program has probably not been built with STLPort (which actually uses it's own namespace), John.

"John Maddock" <john@johnmaddock.co.uk> writes:
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.
If you see std:: in the error message then that program has probably not been built with STLPort (which actually uses it's own namespace),
Don't forget that STLPort has two modes. If you don't build with <stlport-iostream>on I'm pretty sure that everything goes in namespace std::. See http://www.boost.org/tools/build/v1/msvc-stlport-tools.html -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (3)
-
David Abrahams
-
Ian McCarty
-
John Maddock