查看: 1299|回复: 1

Qt emit 与 spark的emit 冲突!!!!!!!!!!!!!!!!!!!!!!

[复制链接]

该用户从未签到

发表于 2014-12-29 16:09:56 | 显示全部楼层 |阅读模式
如题,怎么破!
定位下述的第一个错误的位置为
Core\SPK_Emitter.h文件中的
void emit(Particle& particle) const;


g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“)”(在“&”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“;”(在“&”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2182: “Particle”: 非法使用“void”类型
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2059: 语法错误 : “)”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“;”(在“const”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2208: “const int”: 没有使用此类型进行定义的成员
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(236) : error C2327: “SPK::Emitter:article”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(282) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2589: “(”: “::”右边的非法标记
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2143: 语法错误 : 缺少“;”(在“::”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2059: 语法错误 : “::”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(348) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(348) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2761: “generateVelocity”: 不允许成员函数重新声明
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2143: 语法错误 : 缺少“;”(在“const”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2059: 语法错误 : “const”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(354) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(354) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(98) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2062: 意外的类型“float”
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(120) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(120) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_SphericEmitter.h(151) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_NormalEmitter.h(119) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_RandomEmitter.h(51) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(50) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2062: 意外的类型“float”
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(62) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(62) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Modifiers/SPK_Rotator.h(68) : fatal error C1903: 无法从以前的错误中恢复;正在停止编译
2>stengineforqt.cpp
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“)”(在“&”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“;”(在“&”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2182: “Particle”: 非法使用“void”类型
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2059: 语法错误 : “)”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“;”(在“const”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2208: “const int”: 没有使用此类型进行定义的成员
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(236) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(282) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2589: “(”: “::”右边的非法标记
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2143: 语法错误 : 缺少“;”(在“::”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2059: 语法错误 : “::”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(348) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(348) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2761: “generateVelocity”: 不允许成员函数重新声明
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2143: 语法错误 : 缺少“;”(在“const”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2059: 语法错误 : “const”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(354) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(354) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(98) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2062: 意外的类型“float”
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(120) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(120) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_SphericEmitter.h(151) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_NormalEmitter.h(119) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_RandomEmitter.h(51) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(50) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2062: 意外的类型“float”
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(62) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(62) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Modifiers/SPK_Rotator.h(68) : fatal error C1903: 无法从以前的错误中恢复;正在停止编译
2>main.cpp
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“)”(在“&”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“;”(在“&”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2182: “Particle”: 非法使用“void”类型
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2059: 语法错误 : “)”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2143: 语法错误 : 缺少“;”(在“const”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(226) : error C2208: “const int”: 没有使用此类型进行定义的成员
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(236) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(282) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2589: “(”: “::”右边的非法标记
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2143: 语法错误 : 缺少“;”(在“::”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(347) : error C2059: 语法错误 : “::”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(348) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(348) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2761: “generateVelocity”: 不允许成员函数重新声明
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2143: 语法错误 : 缺少“;”(在“const”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(353) : error C2059: 语法错误 : “const”
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(354) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Core/SPK_Emitter.h(354) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(98) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(119) : error C2062: 意外的类型“float”
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(120) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StraightEmitter.h(120) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_SphericEmitter.h(151) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_NormalEmitter.h(119) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_RandomEmitter.h(51) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(50) : error C2327: “SPK::Emitter::Particle”: 不是类型名称、静态或枚举数
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2065: “particle”: 未声明的标识符
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2597: 对非静态成员“SPK::Emitter::Particle”的非法引用
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C3867: “SPK::Emitter::Particle”: 函数调用缺少参数列表;请使用“&SPK::Emitter::Particle”创建指向成员的指针
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(61) : error C2062: 意外的类型“float”
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(62) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Emitters/SPK_StaticEmitter.h(62) : error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
2>g:\6-20\ssit3dengine_3rd\include\Extensions/Modifiers/SPK_Rotator.h(68) : fatal error C1903: 无法从以前的错误中恢复;正在停止编译

该用户从未签到

发表于 2014-12-31 11:29:25 | 显示全部楼层
改一下头文件顺序
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表