I’m trying to build my game on linux. I’m using ubuntu, clang and cocos2d-x v3 from github repo.
With a few slight modifications I am able to build cocos2d-x (including the tests) on linux. I can run the tests, and everything looks great.
However, when I try to link my code with the cocos2d-x archive file I get the following errors:
undefined reference to `non-virtual thunk to cocos2d::Sprite::getTexture() const' undefined reference to `non-virtual thunk to cocos2d::Sprite::setTexture(cocos2d::Texture2D*)'
After careful investigation I came to realize that these functions are indeed defined in the library, but their ‘non-virtual thunk’ version (whatever that might mean) is not.
I am able to repro this on both 32 and 64 bit versions of ubuntu, with both the built-in version of clang and the latest bits.
I would really appreciate any help I could get here!