/tmp/ccZNcoNu.o: In function
__static_initialization_and_destruction_0(int, int)': xxx.cpp:(.text+0x1f1): undefined reference to
boost::system::generic_category()’ xxx.cpp:(.text+0x1fd):
undefined reference toboost::system::generic_category()' xxx.cpp:(.text+0x209): undefined reference to
boost::system::system_category()’
- 编译后面加上 -lboost_xxx xxx是boost后面的库名
例如:g++ test.cpp -o test -lboost_system