问题描述:
undefined reference to symbol
'boost::detail::get_tss_data(void const*)'
/usr/bin/ld: note: 'boost::detail::get_tss_data(void const*)' is defined in DSO
/usr/lib/libboost_thread.so.1.46.1 so try adding it to the linker command line
/usr/lib/libboost_thread.so.1.46.1: could not read symbols: Invalid operation
解决:
DSO是一个动态的符号解析器,它能够链接程序所要加载的库文件。上述问题是由于在程序中有函数引用了libboost_thread,但却没有链接它。因此,只需要在命令行中加上 -lboost_thread或在makefile中的LINKFLAGS后加上-lboost_thread