cocos2dx win32编译时报错 求解决方案 已解决 是自已的问题 多谢坛友

1>------ 已跳过生成: 项目: libbox2d, 配置: Debug Win32 ------
1>没有为此解决方案配置选中要生成的项目
2>------ 已跳过生成: 项目: libbullet, 配置: Debug Win32 ------
2>没有为此解决方案配置选中要生成的项目
3>------ 已跳过生成: 项目: librecast, 配置: Debug Win32 ------
3>没有为此解决方案配置选中要生成的项目
4>------ 已跳过生成: 项目: libSpine, 配置: Debug Win32 ------
4>没有为此解决方案配置选中要生成的项目
5>------ 已跳过生成: 项目: libsimulator, 配置: Debug Win32 ------
5>没有为此解决方案配置选中要生成的项目
6>------ 已跳过生成: 项目: libcocos2d, 配置: Debug Win32 ------
6>没有为此解决方案配置选中要生成的项目
7>------ 已跳过生成: 项目: libluacocos2d, 配置: Debug Win32 ------
7>没有为此解决方案配置选中要生成的项目
8>------ 已启动生成: 项目: GloryProject, 配置: Debug Win32 ------
8> QrNode.cpp
8> QR_Encode.cpp
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(533): error C2078: 初始值设定项太多
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(538): error C2059: 语法错误:“常量”
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(552): error C2143: 语法错误: 缺少“;”(在“}”的前面)
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(552): error C2059: 语法错误:“}”
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(557): error C2059: 语法错误:“常量”
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(571): error C2143: 语法错误: 缺少“;”(在“}”的前面)
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(571): error C2059: 语法错误:“}”
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(649): error C2065: “byRSExp7”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(750): error C2065: “ncDataCw1”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(762): error C2065: “ncDataCw1”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(769): error C2065: “ncDataCw1”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(777): error C2039: “ncAllCodeWord”: 不是“tagRS_BLOCKINFO”的成员
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.h(34): note: 参见“tagRS_BLOCKINFO”的声明
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(777): error C2065: “ncDataCw1”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(778): error C2039: “ncAllCodeWord”: 不是“tagRS_BLOCKINFO”的成员
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.h(34): note: 参见“tagRS_BLOCKINFO”的声明
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(790): error C2065: “ncDataCw1”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(792): error C2065: “ncDataCw1”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(800): error C2065: “ncDataCw1”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1256): error C2601: “CQR_Encode::GetBitLength”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1297): error C2601: “CQR_Encode::SetBitStream”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1317): error C2601: “CQR_Encode::IsNumeralData”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1328): error C2601: “CQR_Encode::IsAlphabetData”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1345): error C2601: “CQR_Encode::IsKanjiData”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1361): error C2601: “CQR_Encode::AlphabetToBinaly”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1389): error C2601: “CQR_Encode::KanjiToBinaly”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1402): error C2601: “CQR_Encode::GetRSCodeWord”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1434): error C2601: “CQR_Encode::FormatModule”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1482): error C2601: “CQR_Encode::SetFunctionModule”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1532): error C2601: “CQR_Encode::SetFinderPattern”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1554): error C2601: “CQR_Encode::SetAlignmentPattern”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1580): error C2601: “CQR_Encode::SetVersionPattern”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1612): error C2601: “CQR_Encode::SetCodeWordPattern”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1655): error C2601: “CQR_Encode::SetMaskingPattern”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1711): error C2601: “CQR_Encode::SetFormatInfoPattern”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1774): error C2601: “CQR_Encode::CountPenalty”: 本地函数定义是非法的
8> d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(932): note: 此行有一个“{”没有匹配项
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1907): error C2065: “nPenalty”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1909): error C2065: “nPenalty”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qr_encode.cpp(1912): fatal error C1004: 发现意外的文件尾
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qrnode.cpp(211): error C2065: “QR_MARGIN”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qrnode.cpp(236): error C2065: “QR_MARGIN”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qrnode.cpp(240): error C2065: “QR_MARGIN”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qrnode.cpp(244): error C2065: “QR_MARGIN”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qrnode.cpp(245): error C2065: “QR_MARGIN”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qrnode.cpp(246): error C2065: “QR_MARGIN”: 未声明的标识符
8>d:\rtm\316\phone316game\frameworks\runtime-src\classes\luaassert\qrnode.cpp(247): error C2065: “QR_MARGIN”: 未声明的标识符
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 7 个 ==========

有没知道的

引擎和编译器都什么版本?

这是你自己的代码报的错,和cocos2dx啥关系?建议修改标题

自已的错?

错误日志提示得很明显了,你看下这个cpp。

cpp 文件编码问题

当时解决了 感谢你的热心回复