How can I add the std = C ++ 11 flag to clang-cl?
I tried to compile a C ++ 11 program with clang-cl under Windows. Clang-cl is a wrapper around clang to be more cl-compatible (Visual Studio compiler). I have tried adding -std=c++11
and /std=c++11
and both of them deviate. This is not surprising since cl has no C ++ 11 flag. But I cannot use C ++ 11 features with clang-cl.
How do I enable C ++ 11 support in clang-cl?
+3
source to share
1 answer
The documentation mentioned earlier says: http://clang.llvm.org/docs/UsersManual.html#clang-cl
clang is the default for C ++ 11 for Windows targets.
You may not need to pass any flag to clang-cl.
+7
source to share