Do C**11 and Cocos2d-x get along?
I am wondering if it is safe to use “
C++11[-std=c++11]” as “
C++ Language Dialect” in my Cocos2d-x project.
I set it in Xcode and it compiles without any errors, but I’ve read that there could be potential problems with Visual Studio and the Android NDK. Are those concerns valid?
Also, I tried setting the “
C++ Standard Library” to “
libc++ (LLVM C++ standard library with C++11 support)” but the compiler gives me an error, stating:
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)Is there a way to use the C**11 std library in Cocos2d-x projects?