here’s a snippet:
cocos2d::CCMenuItemImage *adBanner = cocos2d::CCMenuItemImage::itemFromNormalImage("personalad.png", "personalad.png", self, menu_selector(openURLforAd));
// error SEL_MenuHandler was not declared in this scope
I get these specific errors:
testsAppDelegate.mm:165: error: ‘SEL_MenuHandler’ was not declared in this scope
testsAppDelegate.mm:165: error: ‘openURLforAd’ was not declared in this scope
What is the proper way to call an objective-c function while using c++ function call? Is that totally illegal? If so, what would you recommend? I’m trying to implement AdWhirl iPhone SDK into this cocos2d-x project on the iOS side of the port.