First off, happy new Chinese year!
Anyway, I’ve found another bug This time, it was an easy one:
- Open $cocos2dx_root/cocos2dx/include/CCLayer.h
- Look for the CCLayerGradient class
As you might notice, there’s no DLL declaration thingy in there! So whenever one uses CCLayerGradient on Win32, the linker will complain because it cannot find the class. It’s easily fixed by adding the CCX_DLL macro in front of the CCLayerGradient class declaration.