我正在尝试在Ubuntu下使用Clang连接Boost库,但遇到以下错误:
我已经在CMake中添加了find_package(Boost COMPONENTS file_system, system)。你知道是什么原因导致了这个错误吗?
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_filesystem.a(operations.o): undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4'
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已经在CMake中添加了find_package(Boost COMPONENTS file_system, system)。你知道是什么原因导致了这个错误吗?