【问题标题】:Error Compiling libc++ using Clang 3.0 on Ubuntu在 Ubuntu 上使用 Clang 3.0 编译 libc++ 时出错
【发布时间】:2012-02-18 01:09:37
【问题描述】:

当我尝试在我的 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

【问题讨论】:

    标签: clang libc++


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2011-09-22
      • 2020-07-21
      • 2013-10-27
      • 2023-04-07
      • 2013-08-12
      • 1970-01-01
      • 1970-01-01
      • 2013-11-21
      • 1970-01-01
      相关资源
      最近更新 更多