"C++ forbids declaration of 'LAYER_CREATE_FUNC' with no type" after Cocos2d-x update

Hello everyone,

I recently updated all of my cocos2d-x files, simply by deleting all the old files and adding new files. Now when I try to compile I get this error. I use Eclipse under Windows 7 32-bit.

What am I doing wrong? :slight_smile:

Thank you!

Best regards
Andreas

What version are you using? I believe itโ€™s been changed to CREATE_FUNC* instead ofLAYER_CREATE_FUNC()*

Lance Gray wrote:

What version are you using? I believe itโ€™s been changed to CREATE_FUNC* instead ofLAYER_CREATE_FUNC()*

Thanks, I found this as well by creating a new project and reading through the new files. :slight_smile: However, now I get some new errors:

@Using prebuilt externals
make.exe: Entering directory `/c/Cocos2d-x/cocos/Jojjespelet/proj.android'
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Compile++ thumb  : game_shared <= main.cpp
In file included from jni/helloworld/main.cpp:7:0:
jni/../../Classes/MainMenu.h:77:8: warning: extra tokens at end of #endif directive [enabled by default]
In file included from c:/Cocos2d-x/cocos/cocos2dx/platform/android/jni/JniHelper.h:27:0,
                 from jni/helloworld/main.cpp:2:
c:/Cocos2d-x/android-ndk-r8b/platforms/android-8/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
SharedLibrary  : libgame.so
./obj/local/armeabi/objs-debug/game_shared/helloworld/main.o: In function `~CCPoint':
c:/Cocos2d-x/cocos/cocos2dx/cocoa/CCGeometry.h:38: undefined reference to `vtable for cocos2d::CCPoint'
./obj/local/armeabi/objs-debug/game_shared/helloworld/main.o: In function `~CCSize':
c:/Cocos2d-x/cocos/cocos2dx/cocoa/CCGeometry.h:59: undefined reference to `vtable for cocos2d::CCSize'
./obj/local/armeabi/objs-debug/game_shared/helloworld/main.o: In function `~CCRect':
c:/Cocos2d-x/cocos/cocos2dx/cocoa/CCGeometry.h:79: undefined reference to `vtable for cocos2d::CCRect'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/InGame.o:(.data.rel.ro+0x168): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchCancelled(cocos2d::CCTouch*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/InGame.o:(.data.rel.ro+0x16c): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesBegan(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/InGame.o:(.data.rel.ro+0x170): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesMoved(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/InGame.o:(.data.rel.ro+0x174): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesEnded(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/InGame.o:(.data.rel.ro+0x178): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesCancelled(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/InGame.o:(.data.rel.ro+0x184): undefined reference to `non-virtual thunk to cocos2d::CCLayer::didAccelerate(cocos2d::CCAcceleration*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/MainMenu.o:(.data.rel.ro+0x168): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchCancelled(cocos2d::CCTouch*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/MainMenu.o:(.data.rel.ro+0x16c): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesBegan(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/MainMenu.o:(.data.rel.ro+0x170): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesMoved(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/MainMenu.o:(.data.rel.ro+0x174): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesEnded(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/MainMenu.o:(.data.rel.ro+0x178): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesCancelled(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/MainMenu.o:(.data.rel.ro+0x184): undefined reference to `non-virtual thunk to cocos2d::CCLayer::didAccelerate(cocos2d::CCAcceleration*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/Menu.o:(.data.rel.ro+0x168): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchCancelled(cocos2d::CCTouch*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/Menu.o:(.data.rel.ro+0x16c): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesBegan(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/Menu.o:(.data.rel.ro+0x170): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesMoved(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/Menu.o:(.data.rel.ro+0x174): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesEnded(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/Menu.o:(.data.rel.ro+0x178): undefined reference to `non-virtual thunk to cocos2d::CCLayer::ccTouchesCancelled(cocos2d::CCSet*, cocos2d::CCEvent*)'
./obj/local/armeabi/objs-debug/game_shared/__/__/Classes/Menu.o:(.data.rel.ro+0x184): undefined reference to `non-virtual thunk to cocos2d::CCLayer::didAccelerate(cocos2d::CCAcceleration*)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawPoint(cocos2d::CCPoint const&)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:86: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:88: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:89: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith1f(unsigned int, float)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawPoints(cocos2d::CCPoint const*, unsigned int)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:104: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:105: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:106: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith1f(unsigned int, float)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawLine(cocos2d::CCPoint const&, cocos2d::CCPoint const&)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:145: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:147: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawPoly(cocos2d::CCPoint const*, unsigned int, bool)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:184: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:185: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const*, unsigned int, cocos2d::_ccColor4F)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:226: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:227: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawCircle(cocos2d::CCPoint const&, float, float, unsigned int, bool, float, float)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:281: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:282: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawQuadBezier(cocos2d::CCPoint const&, cocos2d::CCPoint const&, cocos2d::CCPoint const&, unsigned int)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:316: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:317: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawCardinalSpline(cocos2d::CCPointArray*, float, unsigned int)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:368: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:369: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCDrawingPrimitives.o): In function `cocos2d::ccDrawCubicBezier(cocos2d::CCPoint const&, cocos2d::CCPoint const&, cocos2d::CCPoint const&, cocos2d::CCPoint const&, unsigned int)':
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:397: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
c:/Cocos2d-x/cocos/cocos2dx/CCDrawingPrimitives.cpp:398: undefined reference to `cocos2d::CCGLProgram::setUniformLocationWith4fv(unsigned int, float*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x16c): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::setColor(cocos2d::_ccColor3B const&)'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x170): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::getColor()'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x174): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::getOpacity()'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x178): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::setOpacity(unsigned char)'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x17c): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::setOpacityModifyRGB(bool)'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x180): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::isOpacityModifyRGB()'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x18c): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x190): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x194): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCLabelAtlas.o):(.data.rel.ro+0x198): undefined reference to `non-virtual thunk to cocos2d::CCAtlasNode::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x84): undefined reference to `cocos2d::CCSprite::setRotationX(float)'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x8c): undefined reference to `cocos2d::CCSprite::setRotationY(float)'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x200): undefined reference to `non-virtual thunk to cocos2d::CCSprite::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x204): undefined reference to `non-virtual thunk to cocos2d::CCSprite::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x210): undefined reference to `non-virtual thunk to cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const&)'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x214): undefined reference to `non-virtual thunk to cocos2d::CCSprite::getColor()'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x21c): undefined reference to `non-virtual thunk to cocos2d::CCSprite::setOpacity(unsigned char)'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x220): undefined reference to `non-virtual thunk to cocos2d::CCSprite::setOpacityModifyRGB(bool)'
./obj/local/armeabi/libcocos2d.a(CCLabelTTF.o):(.data.rel.ro+0x224): undefined reference to `non-virtual thunk to cocos2d::CCSprite::isOpacityModifyRGB()'
./obj/local/armeabi/libcocos2d.a(CCProgressTimer.o): In function `cocos2d::CCProgressTimer::draw()':
c:/Cocos2d-x/cocos/cocos2dx/misc_nodes/CCProgressTimer.cpp:521: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x2a0): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x2a4): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x2a8): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x2ac): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x550): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x554): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x558): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x55c): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x800): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x804): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x808): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x80c): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0xab0): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0xab4): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0xab8): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0xabc): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0xd60): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0xd64): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0xd68): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0xd6c): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1010): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1014): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1018): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x101c): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x12c0): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x12c4): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x12c8): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x12cc): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1570): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1574): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1578): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x157c): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1820): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1824): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1828): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x182c): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1ad0): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1ad4): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1ad8): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1adc): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1d80): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1d84): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1d88): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystem::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCParticleExamples.o):(.data.rel.ro+0x1d8c): undefined reference to `non-virtual thunk to cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCShaderCache.o): In function `cocos2d::CCShaderCache::loadDefaultShader(cocos2d::CCGLProgram*, int)':
c:/Cocos2d-x/cocos/cocos2dx/shaders/CCShaderCache.cpp:284: undefined reference to `cocos2d::ccPositionColorLengthTexture_vert'
c:/Cocos2d-x/cocos/cocos2dx/shaders/CCShaderCache.cpp:284: undefined reference to `cocos2d::ccPositionColorLengthTexture_frag'
./obj/local/armeabi/libcocos2d.a(CCSprite.o): In function `cocos2d::CCSprite::draw()':
c:/Cocos2d-x/cocos/cocos2dx/sprite_nodes/CCSprite.cpp:579: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
./obj/local/armeabi/libcocos2d.a(CCSpriteBatchNode.o): In function `cocos2d::CCSpriteBatchNode::draw()':
c:/Cocos2d-x/cocos/cocos2dx/sprite_nodes/CCSpriteBatchNode.cpp:401: undefined reference to `cocos2d::CCGLProgram::setUniformForModelViewProjectionMatrix()'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x84): undefined reference to `cocos2d::CCSprite::setRotationX(float)'
make.exe: Leaving directory `/c/Cocos2d-x/cocos/Jojjespelet/proj.android'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x8c): undefined reference to `cocos2d::CCSprite::setRotationY(float)'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x238): undefined reference to `non-virtual thunk to cocos2d::CCSprite::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x23c): undefined reference to `non-virtual thunk to cocos2d::CCSprite::setTexture(cocos2d::CCTexture2D*)'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x248): undefined reference to `non-virtual thunk to cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const&)'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x24c): undefined reference to `non-virtual thunk to cocos2d::CCSprite::getColor()'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x254): undefined reference to `non-virtual thunk to cocos2d::CCSprite::setOpacity(unsigned char)'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x258): undefined reference to `non-virtual thunk to cocos2d::CCSprite::setOpacityModifyRGB(bool)'
./obj/local/armeabi/libcocos2d.a(CCTextFieldTTF.o):(.data.rel.ro+0x25c): undefined reference to `non-virtual thunk to cocos2d::CCSprite::isOpacityModifyRGB()'
./obj/local/armeabi/libcocos2d.a(CCTMXLayer.o): In function `cocos2d::CCTMXLayer::insertTileForGID(unsigned int, cocos2d::CCPoint const&)':
c:/Cocos2d-x/cocos/cocos2dx/tilemap_parallax_nodes/CCTMXLayer.cpp:396: undefined reference to `cocos2d::CCSpriteBatchNode::insertQuadFromSprite(cocos2d::CCSprite*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCTMXLayer.o): In function `cocos2d::CCTMXLayer::appendTileForGID(unsigned int, cocos2d::CCPoint const&)':
c:/Cocos2d-x/cocos/cocos2dx/tilemap_parallax_nodes/CCTMXLayer.cpp:460: undefined reference to `cocos2d::CCSpriteBatchNode::insertQuadFromSprite(cocos2d::CCSprite*, unsigned int)'
./obj/local/armeabi/libcocos2d.a(CCTMXLayer.o):(.data.rel.ro+0x1ac): undefined reference to `non-virtual thunk to cocos2d::CCSpriteBatchNode::setBlendFunc(cocos2d::_ccBlendFunc)'
./obj/local/armeabi/libcocos2d.a(CCTMXLayer.o):(.data.rel.ro+0x1b0): undefined reference to `non-virtual thunk to cocos2d::CCSpriteBatchNode::getBlendFunc()'
./obj/local/armeabi/libcocos2d.a(CCTMXLayer.o):(.data.rel.ro+0x1b4): undefined reference to `non-virtual thunk to cocos2d::CCSpriteBatchNode::getTexture()'
./obj/local/armeabi/libcocos2d.a(CCTMXLayer.o):(.data.rel.ro+0x1b8): undefined reference to `non-virtual thunk to cocos2d::CCSpriteBatchNode::setTexture(cocos2d::CCTexture2D*)'
collect2: ld returned 1 exit status
make.exe: *** [obj/local/armeabi/libgame.so] Error 1@

Does anyone have a clue how to fix this? All help is highly appreciated! :slight_smile:

Well, I got the code to compile after manually including the filepath to the classes that the compiler was complaining about.

Unfortunately all that happens is that the screen goes black and after a while it says that the application stopped responding.

Updating to a newer version of Cocos was harder than I thought it would be. :stuck_out_tongue: