0
我想使用铿锵编译boost C++。为什么boost编译在clang失败?
./b2 --prefix=~/boost --includedir=~/boost/include --libdir=~/boost/lib toolset=clang cxxflags="-std=c++11 -stdlib=libc++ -isystem ~/libcxx/include/" linkflags="-stdlib=libc++ -L ~/libcxx/lib/"
当我看到日志文件提示错误说
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
__GLOBAL__I_a in exceptions.o
"boost::system::generic_category()", referenced from:
__GLOBAL__I_a in exceptions.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的默认铛铛是-MP-3.3。任何人都可以请帮我弄清楚这个问题是什么。
什么是平台?什么是Boost版本? –
谢谢Igor R的评论。平台是什么意思(对不起)?其提升1.55。我有mac darwin内核版本12.4.0 – solti
Boost 1.55不存在,也许你的意思是1.54。链接器无法找到什么符号? –