I am trying to fasten boost-korutins to the program, but this line, the program has stopped gathering - it fell with a bunch of undefined reference to
:
boost::asio::spawn(socket->get_io_service(), boost::bind(&Connection::work, shared_from_this(), _1));
Then, I added the linker flag -lboost_coroutine
, the number of errors decreased, but still there were two:
(.text+0x14d)| |undefined reference to 'make_fcontext'| (.text+0x290)| |undefined reference to 'jump_fcontext'|
What else do you need to link? (Google somehow did not really help)
Compile flags now: -pthread -lboost_system -lboost_coroutine
OS: Ubuntu 14.04 LTS на VirtualBox