Boost logo

Boost :

Subject: Re: [boost] [context] build error with -std=c++0x
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2010-11-24 23:05:07

Charlls Quarra wrote:
> Hi,
> 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/ | 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*&&&)

This concerns the move constructor and assignments.

> I tried to rebuild the test project exactly as in my first post, but i got
> this error:
> boost_1_43_0/stage/ undefined reference to
> `boost::contexts::context::context(boost::contexts::context const&)'
> collect2: ld returned 1 exit status

The message is telling you that the copy constructor is undefined, which is
normal as a context is not copy contructible.


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at