执行编译命令:
g++ -lboost_system-mt -I/home/base/boost_1_58_0 -L/home/base/boost_1_58_0/stage/lib client.cpp -o client
出现错误提示:
/tmp/ccpebBMj.o: In function `__static_initialization_and_destruction_0(int, int)':
client.cpp:(.text+0x2f3): undefined reference to `boost::system::generic_category()'
client.cpp:(.text+0x2ff): undefined reference to `boost::system::generic_category()'
client.cpp:(.text+0x30b): undefined reference to `boost::system::system_category()'
/tmp/ccpebBMj.o: In function `boost::system::error_code::error_code()':
client.cpp:(.text._ZN5boost6system10error_codeC2Ev[_ZN5boost6system10error_codeC5Ev]+0x17): undefined reference to `boost::system::system_category()'
/tmp/ccpebBMj.o: In function `boost::asio::error::get_system_category()':
client.cpp:(.text._ZN5boost4as