c++ - OS X安装clang标准库libcxx错误?
天蓬老师
天蓬老师 2017-04-17 13:36:11
0
1
594

在用户根目录下成功编译安装最新llvm-clang。
安装libcxx时出现错误。

svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx
成功。
~/llvm-clang/libcxx/lib下执行
./buildit
报错

+ clang algorithm.o any.o bind.o chrono.o condition_variable.o debug.o exception.o future.o hash.o ios.o iostream.o locale.o memory.o mutex.o new.o optional.o random.o regex.o shared_mutex.o stdexcept.o string.o strstream.o system_error.o thread.o typeinfo.o utility.o valarray.o -fPIC -o libc++.so.1.0 -shared -nodefaultlibs -Wl,-soname,libc++.so.1 -lpthread -lrt -lc -lstdc++ -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wstrict-aliasing=2 -Wstrict-overflow=4
clang: warning: argument unused during compilation: '-nostdinc++'
ld: unknown option: -soname
clang: error: linker command failed with exit code 1 (use -v to see invocation)
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

全部回复(1)
伊谢尔伦

-v参数加上看看

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!