fSchl
August 6, 2012, 9:07pm
#1
Hi,
I am wanting to use the CCActionTween class, however upon compiling I get an unresolved external symbol problem:
unresolved external symbol "public: static class cocos2d::CCActionTween * __cdecl cocos2d::CCActionTween::create(float,char const *,float,float)"
The rest of cocos2dx links perfectly fine.
Any ideas? I am using cocos2dx 2
It is strange, could you paste some codes to help reproducing the issue?
And which platform did you test on?
fSchl
August 13, 2012, 8:40am
#3
Hi,
I am using cocos2d-2.0-rc2-x-2.0.1 on win32.
I think I found the problem, however this is untested: the classes CCActionTween
and CCActionTweenDelegate
do not use the CC_DLL macro which probably means that they are not exported to the dll and hence cannot be linked against.
fSchl
August 13, 2012, 11:03am
#4
Ok, adding the CC_DLL to the class declaration resolves the issue. That should probably be fixed for the next release.