在Ubuntu上使用Clang 3.0编译libc++时出错

3

当我尝试在我的Ubuntu 12.04上使用LLVM 3.0和Clang 3.0编译libc++(libcxx)时,我收到了以下错误:

+ clang++ -c -g -Os -fPIC -std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2 -Wstrict-overflow=4 -nostdinc++ -I../include ../src/stdexcept.cpp
../src/stdexcept.cpp:18:10: fatal error: 'cxxabi.h' file not found
#include <cxxabi.h>
         ^
1 error generated.

我应该把cxxabi.h放在哪里?它目前在以下位置

/usr/include/c++/4.4/cxxabi.h
/usr/include/c++/4.6/cxxabi.h
/usr/include/c++/4.7/cxxabi.h
1个回答

2

我的最佳猜测是这些cxxabi.h中的任何一个都可以工作。除了.cpp文件正在寻找是否与libc++abi一起使用,对于你的所有3个cxxabi.h,这个条件都不成立。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接