I have this code snipet:
void MenuScene::startFromTheBegnningCallBack(CCObject* pSender)
{
this->menu->removeFromParentAndCleanup(false);
this->cloudLayer->removeFromParentAndCleanup(true);
CCFiniteTimeAction * moveMenu = CCMoveTo::actionWithDuration(3, ccp(0, -height));
CCCallFuncN * endFunc = CCCallFuncN::actionWithTarget(this,callfuncN_selector(MenuScene::finalizouMenu));
this->sceneSprites[1].runAction( CCSequence::actions (moveMenu , endFunc, NULL ) ) ;
};
it throws this error on linker:
Ld "/Users/pride/Library/Developer/Xcode/DerivedData/Ka'arupan-akdbdefpibsipkcleiatniocnsfh/Build/Products/Debug-iphoneos/Ka'arupan.app/Ka'arupan" normal armv7
cd /Users/pride/Documents/kaarupan_svn
setenv IPHONEOS_DEPLOYMENT_TARGET 5.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk "-L/Users/pride/Library/Developer/Xcode/DerivedData/Ka'arupan-akdbdefpibsipkcleiatniocnsfh/Build/Products/Debug-iphoneos" "-F/Users/pride/Library/Developer/Xcode/DerivedData/Ka'arupan-akdbdefpibsipkcleiatniocnsfh/Build/Products/Debug-iphoneos" -filelist "/Users/pride/Library/Developer/Xcode/DerivedData/Ka'arupan-akdbdefpibsipkcleiatniocnsfh/Build/Intermediates/Ka'arupan.build/Debug-iphoneos/Ka'arupan.build/Objects-normal/armv7/Ka'arupan.LinkFileList" -dead_strip -lxml2 -lz -miphoneos-version-min=5.1 -framework QuartzCore -framework OpenGLES -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/pride/Library/Developer/Xcode/DerivedData/Ka'arupan-akdbdefpibsipkcleiatniocnsfh/Build/Products/Debug-iphoneos/Ka'arupan.app/Ka'arupan"
Undefined symbols for architecture armv7:
"__ZN9MenuScene13finalizouMenuEPN7cocos2d6CCNodeE", referenced from:
__ZN9MenuScene28startFromTheBegnningCallBackEPN7cocos2d8CCObjectE in MenuScene.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
if i remove the callfunc the error goes away…
thoughts:???