
Hi,
De: Lars Viklund <zao@acc.umu.se>
You should most probably build both the library and the application with the same language level.
This commonly occurs on platforms where differences in build settings cause more errors, like on VC++ with the different runtimes and other compiler tunables.
sorry for the replying delay You are right, i was trying to link against boost built without c++0x, so i went back into the build directory and ran: bjam -a architecture=x86 instruction-set=i686 toolset=gcc cxxflags=-std=gnu++0x --with-context stage verified that the library had the appropiate symbols: nm stage/libboost_context.so.1.43 | c++filt | grep '&&' 00002d09 W boost::remove_reference<boost::contexts::context&>::type&& boost::move<boost::contexts::context&>(boost::contexts::context&&&) 00002408 T boost::contexts::context::context(boost::contexts::context&&) 000023d4 T boost::contexts::context::context(boost::contexts::context&&) 0000243c T boost::contexts::context::operator=(boost::contexts::context&&) 00002d5d W std::remove_reference<boost::contexts::context::impl_t*&>::type&& std::move<boost::contexts::context::impl_t*&>(boost::contexts::context::impl_t*&&&) I tried to rebuild the test project exactly as in my first post, but i got this error: boost_1_43_0/stage/libboost_context.so: undefined reference to `boost::contexts::context::context(boost::contexts::context const&)' collect2: ld returned 1 exit status
You're probably looking at an ODR violation, as there tends to be some rather different types resulting from building with and without 0x, particularly if conditionally defined around it.
-- Lars Viklund | zao@acc.umu.se _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost