Actions
Support #1244
closedWhich is the best way to define macro "__cplusplus" when I use crystax?
Start date:
01/31/2016
Due date:
% Done:
100%
Estimated time:
Target CPU Architecture:
arm
Host OS:
Windows
Toolchain:
gcc-5
Android version:
5.0 (android-21)
CrystaX NDK Version:
Description
!http://7xoj7k.com1.z0.glb.clouddn.com/16-1-31/8273847.jpg!
When I use crystax, I still can't use C11.
Finally I find the reason is the macro "__cplusplus" still not defined.
I defined the following options in file "Application.mk"
APP_PLATFORM := android-16
APP_ABI := armeabi-v7a
APP_STL := gnustl_static
NDK_TOOLCHAIN_VERSION=5
APP_CPPFLAGS += -fno-rtti -fexceptions
APP_CPPFLAGS +=-fpermissive
APP_CPPFLAGS += -std=c++11
What else should I do to make C11 correctly work?
Files
Actions