用于解析C ++代码的clang API

时间:2011-06-23 03:37:14

标签: compiler-construction clang

我需要clang API来解析C ++程序。我安装了clang 2.9(以及llvm。安装很顺利,现在我发现我还需要安装libc ++。当我尝试从源代码'制作'libc ++时,我遇到了错误。

[4%]构建CXX对象lib / CMakeFiles / cxx.dir / __ / src / iostream.cpp.o

在/ home / vmplanet / usr / libcxx / include / typeinfo:61:0中包含的文件中,

             from /home/vmplanet/usr/libcxx/include/memory:590,

             from /home/vmplanet/usr/libcxx/include/algorithm:594,

             from /home/vmplanet/usr/libcxx/include/string:434,

             from /home/vmplanet/usr/libcxx/include/__locale:15,

             from /home/vmplanet/usr/libcxx/include/ios:216,

             from /home/vmplanet/usr/libcxx/include/ostream:130,

             from /home/vmplanet/usr/libcxx/include/__std_stream:15,

             from /home/vmplanet/usr/libcxx/src/iostream.cpp:10:

/ home / vmplanet / usr / libcxx / include / exception:在成员函数中,'std :: exception_ptr :: operator bool()const,':

/ home / vmplanet / usr / libcxx / include / exception:134:59:错误:不匹配,'operator!=,'in,'((const

std :: exception_ptr *)this) - > std :: exception_ptr :: _ ptr != std :: _ 1 :: _get_nullptr_t(),' / home / vmplanet / usr / libcxx / include / cstddef:76:39:注意:候选人是:bool std :: _ 1 :: operator!=(std :: _1 :: nullptr_t, 的std :: __ 1个:: nullptr_t)

make [2]: * [lib / CMakeFiles / cxx.dir / __ / src / iostream.cpp.o]错误1

make [1]: * [lib / CMakeFiles / cxx.dir / all]错误2

make: * [all]错误2

0 个答案:

没有答案