Hi,
I am trying to compile some objective-c code with the compiler packaged in the linux version of the Android NDK-r8e
To be clear, I am NOT trying to compile Cocoa or anything like that.
I just want to have access to objective-c syntax and compile a self-contained class.
The problem is that when I pass an .mm file to the compiler, it complains:
arm-linux-androideabi-g++:
test.mm: Objective-C++ compiler not installed on this system
Here is the command I used:
/opt/android-ndk-r8e/
toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++
-c -DDEBUG -UNDEBUG -DYOU_WIN_GRAPHICAL -g -fpic -mthumb-interwork
-Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno-exceptions
-mthumb -Wa,--noexecstack -O0 -I/opt/android-ndk-r8e/sources/cxx-stl/stlport/stlport -I/opt/android-ndk-r8e/sources/cxx-stl/gabi++/include -I/opt/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -I/opt/android-ndk-r8/sources/android/native_app_glue
-I/opt/youwin/include -I/opt/youwin/include -D__ARM_ARCH_5__
-D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID
-Wall -fPIC -fPIC
test.mmIs there objective-c support in the compiler or is it only present in the OS/X version of the NDK?
Thanks!