3

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

+ 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
4

1 回答 1

2

我最好的猜测是这些 cxxabi.h 中的任何一个都可以工作。std except.cpp 唯一要寻找的是它是否与libc++abi 一起使用,这对于您的所有 3 个 cxxabi.h 都是错误的。

于 2012-02-19T02:47:42.207 回答