Project

General

Profile

Actions

Support #1244

closed

Which is the best way to define macro "__cplusplus" when I use crystax?

Added by Mario L. about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
01/31/2016
Due date:
% Done:

0%

Estimated time:
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

__cplusplus.png (63.4 KB) __cplusplus.png Mario L., 01/31/2016 05:08 PM
test_macro_cplusplus.zip (44.8 KB) test_macro_cplusplus.zip minimal example Mario L., 02/02/2016 05:01 AM

Related issues 1 (1 open0 closed)

Has duplicate CrystaX NDK - Support #1251: Which is the best way to define macro "__cplusplus" when I use crystax?Duplicated02/02/2016

Actions
Actions

Also available in: Atom PDF