1、 a missing vtable usually means the first non-inline virtual member function has no definition.
谷歌出来的结果,“在xcode下编译cocos2d-x项目,如果子类继承了父类但是没有实现父类的虚函数,就会报如上错误。
同时,没有实现析构函数也会出现同样问题。”
查看了下自己的代码,好多layer下得init方法没有实现,只是声明了。所以在所有没有实现的方法中添加
if ( !CCLayer::init() )
{
return false;
}
return true;
重新编译即可。