cocos2d编译问题,求大神解惑,谢谢!

藏何 2016-05-11 10:52:55
1> Unknown compiler version - please run the configure tests and report the results
1>\classes\stdafx.h(71): error C2039: “gui”: 不是“cocos2d”的成员
1>\classes\stdafx.h(71): error C2871: “gui”: 具有该名称的命名空间不存在
1>\classes\AnimateInjectionManager.h(243): error C2146: 语法错误: 缺少“;”(在标识符“idir”的前面)
1>\classes\AnimateInjectionManager.h(243): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\AnimateInjectionManager.h(248): error C2061: 语法错误: 标识符“LoadingBarType”
1>\classes\AnimateInjectionManager.h(303): error C2504: “UIWidget”: 未定义基类
1>\classes\AnimateInjectionManager.h(311): error C2061: 语法错误: 标识符“UILoadingBar”
1>\classes\AnimateInjectionManager.h(312): error C2061: 语法错误: 标识符“TextureResType”
1>\classes\AnimateInjectionManager.h(313): error C2061: 语法错误: 标识符“LoadingBarType”
1>\classes\AnimateInjectionManager.h(320): error C2146: 语法错误: 缺少“;”(在标识符“getDirection”的前面)
1>\classes\AnimateInjectionManager.h(320): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\AnimateInjectionManager.h(320): warning C4183: “getDirection”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\AnimateInjectionManager.h(331): error C2146: 语法错误: 缺少“;”(在标识符“idir”的前面)
1>\classes\AnimateInjectionManager.h(331): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\AnimateInjectionManager.h(305): error C2039: “autorelease”: 不是“UIEnergyBar”的成员
1> \classes\AnimateInjectionManager.h(303) : 参见“UIEnergyBar”的声明
1>\classes\scene/HelperOverlayer.h(47): error C2146: 语法错误: 缺少“;”(在标识符“seekWidgetByName”的前面)
1>\classes\scene/HelperOverlayer.h(47): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\scene/HelperOverlayer.h(47): error C2061: 语法错误: 标识符“UIWidget”
1>\classes\scene/HelperOverlayer.h(47): warning C4183: “seekWidgetByName”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\GobleMethod.h(23): error C2143: 语法错误 : 缺少“;”(在“*”的前面)
1>\classes\GobleMethod.h(23): error C2433: “FuncAssemble::UIWidget”: 不允许在数据声明中使用“virtual”
1>\classes\GobleMethod.h(23): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\GobleMethod.h(23): warning C4183: “LoadWidgetFromJsonFile”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\GobleMethod.h(24): error C2143: 语法错误 : 缺少“;”(在“*”的前面)
1>\classes\GobleMethod.h(24): error C2433: “FuncAssemble::UIWidget”: 不允许在数据声明中使用“virtual”
1>\classes\GobleMethod.h(24): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\GobleMethod.h(24): warning C4183: “GetLoadedWidgetFromJsonFileName”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\GobleMethod.h(25): error C2143: 语法错误 : 缺少“;”(在“*”的前面)
1>\classes\GobleMethod.h(25): error C2433: “FuncAssemble::UIWidget”: 不允许在数据声明中使用“virtual”
1>\classes\GobleMethod.h(25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\GobleMethod.h(25): warning C4183: “GetRootWidgetFromSubWidget”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\GobleMethod.h(26): error C2143: 语法错误 : 缺少“;”(在“*”的前面)
1>\classes\GobleMethod.h(26): error C2433: “FuncAssemble::UIWidget”: 不允许在数据声明中使用“virtual”
1>\classes\GobleMethod.h(26): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\GobleMethod.h(26): warning C4183: “GetWidgetByCombiname”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\GobleMethod.h(27): error C2061: 语法错误: 标识符“UIWidget”
1>\classes\GobleMethod.h(28): error C2061: 语法错误: 标识符“TouchEventType”
1>\classes\GobleMethod.h(29): error C2061: 语法错误: 标识符“Widget”
1>\classes\GobleMethod.h(30): error C2061: 语法错误: 标识符“Widget”
1>\classes\GobleMethod.h(32): error C2061: 语法错误: 标识符“Widget”
1>\classes\GobleMethod.h(33): error C2061: 语法错误: 标识符“SEL_TouchEvent”
1>\classes\GobleMethod.h(23): error C2253: “FuncAssemble::LoadWidgetFromJsonFile”: 纯说明符或抽象重写说明符只允许在虚函数上使用
1>\classes\GobleMethod.h(24): error C2253: “FuncAssemble::GetLoadedWidgetFromJsonFileName”: 纯说明符或抽象重写说明符只允许在虚函数上使用
1>\classes\GobleMethod.h(25): error C2253: “FuncAssemble::GetRootWidgetFromSubWidget”: 纯说明符或抽象重写说明符只允许在虚函数上使用
1>\classes\GobleMethod.h(26): error C2253: “FuncAssemble::GetWidgetByCombiname”: 纯说明符或抽象重写说明符只允许在虚函数上使用
1>\classes\GobleMethod.h(140): error C2065: “UIWidget”: 未声明的标识符
1>\classes\GobleMethod.h(140): error C2923: “ExVersion”: 对于参数“_T”,“UIWidget”不是有效的 模板 类型变量
1>\classes\GobleMethod.h(144): error C2065: “UIWidget”: 未声明的标识符
1>\classes\GobleMethod.h(144): error C2065: “sender”: 未声明的标识符
1>\classes\GobleMethod.h(144): error C2065: “parent”: 未声明的标识符
1>\classes\GobleMethod.h(144): error C2182: “CallFunctor”: 非法使用“void”类型
1>\classes\GobleMethod.h(144): error C2513: “int cocos2d::CCObject::* ”: 在“=”前没有声明变量
1>\classes\GobleMethod.h(151): error C2065: “UILayer”: 未声明的标识符
1>\classes\GobleMethod.h(151): error C2923: “ExVersion”: 对于参数“_T”,“UILayer”不是有效的 模板 类型变量
1>\classes\GobleMethod.h(151): error C2955: “ExVersion”: 使用 类 模板 需要 模板 参数列表
1> \classes\GobleMethod.h(103) : 参见“ExVersion”的声明
1>\classes\GobleMethod.h(153): error C2955: “ExVersion”: 使用 类 模板 需要 模板 参数列表
1> \classes\GobleMethod.h(103) : 参见“ExVersion”的声明
1>\classes\GobleMethod.h(162): error C2143: 语法错误 : 缺少“;”(在“*”的前面)
1>\classes\GobleMethod.h(162): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\GobleMethod.h(162): warning C4183: “GetRootWidget”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\GobleMethod.h(165): error C2146: 语法错误: 缺少“;”(在标识符“seekWidgetByName”的前面)
1>\classes\GobleMethod.h(165): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\GobleMethod.h(165): warning C4183: “seekWidgetByName”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\GobleMethod.h(167): error C2061: 语法错误: 标识符“UIWidget”
1>\classes\GobleMethod.h(173): error C2061: 语法错误: 标识符“TouchEventType”
1>\classes\GobleMethod.h(183): error C2143: 语法错误 : 缺少“;”(在“*”的前面)
1>\classes\GobleMethod.h(183): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\GobleMethod.h(198): error C2146: 语法错误: 缺少“;”(在标识符“seekWidgetByName”的前面)
1>\classes\GobleMethod.h(198): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>\classes\GobleMethod.h(198): warning C4183: “seekWidgetByName”: 缺少返回类型;假定为返回“int”的成员函数
1>\classes\GobleMethod.h(200): error C2061: 语法错误: 标识符“UIWidget”
1>\classes\GobleMethod.h(203): error C2061: 语法错误: 标识符“TouchEventType”
1>\classes\GobleMethod.h(156): error C2614: “UILayerEx::UIPopupLayer”: 非法的成员初始化:“rootWidget”不是基或成员
1>\classes\GobleMethod.h(162): error C2065: “rootWidget”: 未声明的标识符
1>\classes\GobleMethod.h(194): error C2065: “UILayer”: 未声明的标识符
1>\classes\GobleMethod.h(194): error C2923: “ExVersion”: 对于参数“_T”,“UILayer”不是有效的 模板 类型变量
1>\classes\GobleMethod.h(194): error C2955: “ExVersion”: 使用 类 模板 需要 模板 参数列表
1> \classes\GobleMethod.h(103) : 参见“ExVersion”的声明
1>\classes\GobleMethod.h(194): error C2352: “ExVersion<_T>::onExit”: 非静态成员函数的非法调用
1> \classes\GobleMethod.h(117) : 参见“ExVersion<_T>::onExit”的声明
1>\classes\scene/PopupLayer.h(65): error C2504: “UIWidget”: 未定义基类
1>\classes\scene/PopupLayer.h(84): error C2504: “UIButton”: 未定义基类
========== 生成: 成功 0 个,失败 1 个,最新 5 个,跳过 0 个 ==========
...全文
696 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
藏何 2016-05-20
  • 打赏
  • 举报
回复
引用的问题1111
qq_33696907 2016-05-13
  • 打赏
  • 举报
回复
没有包含cocos2d.h?没有USING_NS_CC;?

721

社区成员

发帖
与我相关
我的任务
社区描述
Cocos2d-x相关内容讨论专区
社区管理员
  • Cocos2d-x
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧