I’ve compiled the native activity sample and it runs fine. When I switch from main.c to main.cpp I get a compiler error
$ /cygdrive/c/android-ndk-r7/ndk-build
make: *** No rule to make target `jni/main.c', needed by `obj/local/armeabi/objs/native-activity/main.o'. Stop.
I changed the make file to main.cpp.
I’m new to Android and Linux. I’m using Cygwin.
I had to delete the object files. Dumb mistake.