【发布时间】:2016-07-30 14:35:06
【问题描述】:
最新的 llvm-clang 已经安装(我在我的 ~/ 目录下构建源代码)。
我正在尝试安装标准库 libc++。 成功执行后
svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx
我跑了
./buildit
在
~/llvm-clang/libcxx/lib
但是,我得到了一个错误:
+ 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)
【问题讨论】:
标签: c++ c clang llvm-clang