【发布时间】:2013-01-20 06:36:53
【问题描述】:
我想写一个简单的clang插件。所以我只是执行了一个llvm-clang中提供的"PrintFunctionNames"插件。但是当我尝试执行命令时:
" clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns some-input-file.c "
它给了我 1 个致命错误:
fatal error: 'iostream.h' file not found
#include<iostream.h>
^
1 error generated.
我也尝试使用 -I 选项为 'iostream' 的包含目录提供路径,但它仍然给我同样的错误。
我试过了:
'clang++ -I//usr/include/c++/4.6 -cc1 -load ../../../../Release+Asserts/lib/libPrintFunctionNames.so -plugin 打印-fns ak.cpp '
那么我该如何做呢?
【问题讨论】: