Adding cpp files to cocos2d-x project android project
问题 I've followed this tutorial http://www.raywenderlich.com/33750/cocos2d-x-tutorial-for-ios-and-android-getting-started, and managed to create an android hello world project in cococs2d-x. Now when I add anything to my classes directory and try to use them, I get errors like make: *** [obj/local/armeabi/libgame.so] Error 1 undefined reference to 'ConstAndStats::getDevice()' How should I fix these problems, and add the already working codes (in Xcode) for my eclipse project? 回答1: This kind of