小编Anu*_*ran的帖子

致命错误:在构建clang示例时,找不到'type_traits'文件#include <type_traits>

我正在尝试从clang 构建PrintFunctionNames示例。但是我收到以下错误:

[mac-osx:clang/examples/PrintFunctionNames] osx% clang++ -std=c++0x PrintFunctionNames.cpp
In file included from PrintFunctionNames.cpp:15:
In file included from /usr/local/include/clang/Frontend/FrontendPluginRegistry.h:13:
In file included from /usr/local/include/clang/Frontend/FrontendAction.h:22:
In file included from /usr/local/include/clang/Basic/LLVM.h:22:
In file included from /usr/local/include/llvm/Support/Casting.h:19:
/usr/local/include/llvm/Support/type_traits.h:17:10: fatal error: 'type_traits' file not found
#include <type_traits>
Run Code Online (Sandbox Code Playgroud)

系统信息:

clang版本4.0.0(http://llvm.org/git/clang.git 6197d01def79876e2c1670ced871e10b12c36241)(http://llvm.org/git/llvm.git 24f7cd87f70ddcc91d50f77e405420c0c27853fd)目标:x86_64-apple-darwin15.6.0线程模型InstalledDir:/ usr / local / bin

OSX 10.11.6

编辑1:

在进行Alex建议的更改时,我开始遇到标题问题。通过include修复它时,再次抛出相同的错误

% clang++ -std=c++0x PrintFunctionNames.cpp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I../../../clang/include -I../../../../include -I../../../../../build/include
In file included from PrintFunctionNames.cpp:15:
In file included from ../../../clang/include/clang/Frontend/FrontendPluginRegistry.h:13:
In file included …
Run Code Online (Sandbox Code Playgroud)

c++ macos clang llvm-clang c++11

2
推荐指数
1
解决办法
2852
查看次数

Vim颜色方案在tmux中表现奇怪

当我在vim中设置任何具有深色背景的主题时,在打开tmux中的任何文件时,背景仅在具有文本的行周围传播.(请参阅附图)我的tmux.conf set-option -g default-terminal "xterm-256color" 和我的.cshrc文件有setenv TERM xterm-256color

vimrc截图

vim tmux

1
推荐指数
1
解决办法
78
查看次数

标签 统计

c++ ×1

c++11 ×1

clang ×1

llvm-clang ×1

macos ×1

tmux ×1

vim ×1