Actions
Support #1251
openWhich is the best way to define macro "__cplusplus" when I use crystax?
Status:
Duplicated
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
02/02/2016
Due date:
% Done:
100%
Estimated time:
CPU Architecture:
arm
Host OS:
Windows
Toolchain:
gcc-5
Android version:
4.4 (android-19)
CrystaX NDK Version:
Description
The following question is the same as Support #1244, I can not upload the minimal example file, so I have to make a new one.
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
Updated by Mario L. about 8 years ago
- File test_macro_cplusplus.zip test_macro_cplusplus.zip added
I delete libs and obj folders to make the .zip file smaller, this time I think I will success!!!
Updated by Dmitry M. about 8 years ago
- Is duplicate of Support #1244: Which is the best way to define macro "__cplusplus" when I use crystax? added
Updated by Dmitry M. about 8 years ago
- Status changed from Open to Duplicated
- % Done changed from 0 to 100
Actions