在windows下用vs2008 能够执行 CCTMXTiledMap* titleMap = CCTMXTiledMap::tiledMapWithTMXFile("map2.tmx"); titleMap ->setPosition(ccp(-0,-0)); this->addChild(titleMap,0); 在mac下用xcode编译成功