Llvm clang 2.6: "do not use the clang compiler for C ++ inputs"

LLVM 2.6 + clang.

Trying to compile a C ++ file and got:

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

How to run clang in c ++ mode?

+4
source share
2 answers

I would get a trunk code. C ++ support has improved significantly since 2.6.

The make file clag-tools / clang / tools / driver uses the CLANG_IS_PRODUCTION command to control whether C ++ is turned on or off. CLANG_IS_PRODUCTION means C ++ is off. By default, there is no CLANG_IS_PRODUCTION for the trunk assembly (i.e. development assembly).

+7
source

I know that trunk code has C ++. Perhaps you could use this instead?

+1
source

Source: https://habr.com/ru/post/1302995/


All Articles