Getting Eclipse to parse .mm files as C++


#1

I've been working with this large JUCE project that I'm trying to get to Android.

Some files in this project are .mm files, which I needed to set up that way so Xcode would parse them as Objective-C. However, all of the Obj-C is hidden in #if JUCE_IOS macros, so the Android compiler should just see normal C++ for these files, regardless of the extension.

However, I get a "WARNING: Unsupported source file extensions in jni/Android.mk for module juce_jni" error, with all of the .mm files singles out as "unsupported," and my code ultimately refuses to compile, yielding several "undefined reference" errors.

Is there some way to force Eclipse to parse .mm files as though they were .cpp? What are best practices handling this situation?

Thanks!