cocos2d-x android 添加新场景报错: undefined reference to `vtable for XXX'

转载自 居家懒人 http://www.cnblogs.com/JD85/archive/2012/09/17/2688128.html

加入写了新场景SecondScene,结果在cpp文件里类名地方报错说undefined reference to `vtable for SecondScene‘,

很简单,貌似是每个新场景都要先注册一下,找到jni-->Classes目录下的Android.mk文件,在

LOCAL_SRC_FILES := AppDelegate.cpp                    HelloWorldScene.cpp

下面加入新创建的场景即可:

LOCAL_SRC_FILES := AppDelegate.cpp                    HelloWorldScene.cpp                    SecondScene.cpp

cocos2d-x android 添加新场景报错: undefined reference to `vtable for XXX'

时间: 2024-10-05 05:06:02

cocos2d-x android 添加新场景报错: undefined reference to `vtable for XXX'的相关文章

升级redis3.2.7编译报错“ undefined reference to `clock_gettime'”

由于redis有个紧急的安全漏洞更新所以我升级线上的redis-cluster的版本.编译时报了一个错:" redis-3.2.7/deps/jemalloc/src/nstime.c:120: undefined reference to `clock_gettime' collect2: ld returned 1 exit status make[1]: *** [redis-server] Error 1 make[1]: Leaving directory `redis-3.2.7/s

安装mysql_sniffer报错undefined reference to symbol '[email protected]@GLIBC_2.2.5'问题

按照https://github.com/Qihoo360/mysql-sniffer上的安装方法进行安装,make是报错如下 Linking CXX executable mysql-sniffer /usr/bin/ld: /root/mysql-sniffer/lib/libgthread-2.0.a(gthread-impl.o): undefined reference to symbol '[email protected]@GLIBC_2.2.5' //usr/lib64/libp

linux + eclipse + cdt 报错undefined reference......好麻烦的,这位大牛给出的方法可行,特此MARK!!!!

http://bbs.csdn.net/topics/390239632 kerosun kerosun 等级: 结帖率:96.92% 楼主 发表于: 2012-10-11 12:00:51 比如有一个tools工程,提供给其他工程通用的工具函数. 我现在的做法就只能是ctrl+c|ctrl+v一旦工具函数发生变化,还需要在用到这些函数的工程中更新,比较麻烦. 看到eclipse工程属性设置中有Project References,但是一直不会用.那位好心人能说说怎样实现我的需求. 更多0分享到

单独编译PCL的kdtree模块报错“undefined reference to”

我打算使用gdb调试pcl的kdtree教程(kdtree_search.cpp).由于pcl经过预编译,将kdtree模块编译成动态链接库.使用gdb无法进入动态链接库进行调试! 因此将kdtree模块(主要为kdtree_flann.h和kdtree_flann.hpp)的相关代码抽取出来,单独编译.代码包的树状图如下所示, 上图可见,kdtree模块的依赖了这么多文件,可见pcl的代码抽象程度,重用性做得非常好. 附上CMakeLists.txt, cmake_minimum_requir

php make报错undefined reference to symbol

/usr/bin/ld: ext/phar/.libs/util.o: undefined reference to symbol '[email protected]@libcrypto.so.10' /usr/bin/ld: note: '[email protected]@libcrypto.so.10' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line /lib64/l

Cocos2d-x如何添加新场景及切换新场景(包括场景特效)

做了一天多的工作终于把此功能搞定了,实际上添加新场景花费不了多少时间,时间主要花在切换到另一个场景的实现上,主要原因是编译时出现了一个错误,百思不得其解,后来经过查资料不断摸索才知道自己问题的所在,改正了错误编译通过,实现了我想要的结果,看着那个场景切换的自由和切换过程中各种特效的绚丽,看在眼里,乐在心里. 下面开始我的探索之路: 首先新建一个场景,其实你可以参考HelloWorld场景建立自己的场景,当然你在新的场景里实现的功能由你自己来定,下面贴上我的新建场景代码: SecondScene.

Android 线程更新UI报错 : Can't create handler inside thread that has not called Looper.prepare()

MainActivity中有一个按钮,绑定了save方法 public void save(View view) { String title = titleText.getText().toString(); String timelength = lengthText.getText().toString(); ExecutorService exec = Executors.newCachedThreadPool(); exec.execute(new NewsService(getApp

动态添加Fragment的报错信息

05-29 21:23:28.406: E/AndroidRuntime(23636): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.***.Main}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent

springboot 新工程报错 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

错误日志 ... ... Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-04-02 12:52:47.306 ERROR 22036 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLIC