It's in cocos2d namespace, so the prefix `cocos2d::` isn't needed.