Adding a new .cpp file to the Android build process for Cocos2D-x (or how to handle the undefined reference to `vtable for GameOverScene’ error)

Adding a new .cpp file to the Android build process for Cocos2D-x (or how to handle the undefined reference to `vtable for GameOverScene’ error)

If you were trying to port Ray Wenderlich’s SimpleGame tutorial to Android you may have stumbled upon an output similar to the one below when trying to build the project: SimpleGame/android/obj/local/armeabi/objs-debug/game /../../../Classes/HelloWorldScene.o: In function `GameOverScene’: SimpleGame/android/jni/helloworld/../../../Classes /GameOverScene.h:44: undefined reference to…