NDK: Compile c++ files with .mm extension

view story

http://stackoverflow.com – I have some C++ source files (with .mm extension) in an XCode project. I'm trying to compile only those that are pure C++ (no objc syntax or cocoa runtime used) and compile them in an Android NDK build (NDK r8d). The problem seems to be that g++ will not even consider .mm files as C++ and will fail with: arm-linux-androideabi-g++: error: Objective-C++ compiler not installed on this system I tried: 1. LOCAL_CPP_EXTENSION := .mm (in Android.mk) - doesn't help. 2. Search g++ documentation on how to accept custom file extensions - couldn't find any. I'd really like to find a way to force NDK/g (HowTos)