简体   繁体   English

llvm clang 2.6:“不使用clang编译器进行C ++输入”

[英]llvm clang 2.6: “not using the clang compiler for C++ inputs ”

LLVM 2.6 + clang. LLVM 2.6 + clang。

Trying to compile C++ file and got: 试图编译C ++文件并得到:

clang: warning: not using the clang compiler for C++ inputs

How can I start clang in C++ mode? 如何在C ++模式下启动clang?

I would get the trunk code. 我会得到主干代码。 C++ support has been much improved since 2.6. 自2.6以来,C ++支持得到了很大改进。

The clang driver Makefile in tools/clang/tools/driver uses the CLANG_IS_PRODUCTION define to control whether C++ is on or off. tools / clang / tools / driver中的clang驱动程序Makefile使用CLANG_IS_PRODUCTION定义来控制C ++是打开还是关闭。 CLANG_IS_PRODUCTION means C++ off. CLANG_IS_PRODUCTION意味着C ++关闭。 The default for a trunk build is no CLANG_IS_PRODUCTION (ie a development build). 中继构建的默认设置是CLANG_IS_PRODUCTION(即开发构建)。

I know that the trunk code has c++ enabled. 我知道trunk代码启用了c ++。 Perhaps you could use that instead? 也许你可以用它代替?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM