Project

General

Profile

Actions

Support #1251

open

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

test_macro_cplusplus.zip (44.8 KB) test_macro_cplusplus.zip minimal example Mario L., 02/02/2016 05:00 AM

Related issues 1 (0 open1 closed)

Is duplicate of CrystaX NDK - Support #1244: Which is the best way to define macro "__cplusplus" when I use crystax?RejectedDmitry M.01/31/2016

Actions
Actions #1

Updated by Mario L. about 8 years ago

Oh, no. I failed to upload the file again

Actions #2

Updated by Mario L. about 8 years ago

I delete libs and obj folders to make the .zip file smaller, this time I think I will success!!!

Actions #3

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
Actions #4

Updated by Dmitry M. about 8 years ago

  • Status changed from Open to Duplicated
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF