最近学习boost.asio,写了个简单的server.cpp编译出错:
undefined reference to `boost::system::generic_category()
环境:ubuntu14.04 g++4.8.4
解决办法
You should link in the libboost_system library. I am not sure about codeblocks, but the g++ command-line option on your platform would be
-lboost_system