error C2143: 语法错误 : 缺少“)”(在“常量”的前面)的问题

louis_liux 2017-09-24 10:48:07
各位大家好,小弟有个问题请教一下,我单纯的引入公司软件的基础库没问题能正常编译
单纯的引入第三方的osg库也没问题,能正常编译

但是当两种库同时引入的时候就出现如下错误,请问该如何解决呢,先谢谢各位大神
1>E:\OSG3.2.2\Include\osg/ColorMask(39): error C2143: 语法错误 : 缺少“)”(在“常量”的前面)
1>E:\OSG3.2.2\Include\osg/ColorMask(39): error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>E:\OSG3.2.2\Include\osg/ColorMask(39): error C2059: 语法错误:“)”
1>E:\OSG3.2.2\Include\osg/ColorMask(39): error C2334: “:”的前面有意外标记;跳过明显的函数体
1>E:\OSG3.2.2\Include\osg/ColorMask(46): error C2661: “osg::ColorMask::ColorMask”: 没有重载函数接受 2 个参数
1>E:\OSG3.2.2\Include\osg/Texture(502): error C2059: 语法错误:“常量”
1>E:\OSG3.2.2\Include\osg/Texture(508): error C2143: 语法错误 : 缺少“;”(在“}”的前面)
1>E:\OSG3.2.2\Include\osg/Texture(508): error C2238: 意外的标记位于“;”之前
1>E:\OSG3.2.2\Include\osg/Texture(486): error C2065: “_borderColor”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(486): error C3861: “dirtyTextureParameters”: 找不到标识符
1>E:\OSG3.2.2\Include\osg/Texture(489): error C2065: “_borderColor”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(492): error C2065: “_borderWidth”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(492): error C3861: “dirtyTextureParameters”: 找不到标识符
1>E:\OSG3.2.2\Include\osg/Texture(494): error C2065: “_borderWidth”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(511): error C2065: “FilterParameter”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(511): error C2146: 语法错误: 缺少“)”(在标识符“which”的前面)
1>E:\OSG3.2.2\Include\osg/Texture(511): error C2182: “setFilter”: 非法使用“void”类型
1>E:\OSG3.2.2\Include\osg/Texture(511): error C2059: 语法错误:“)”
1>E:\OSG3.2.2\Include\osg/Texture(514): error C2146: 语法错误: 缺少“;”(在标识符“getFilter”的前面)
1>E:\OSG3.2.2\Include\osg/Texture(514): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>E:\OSG3.2.2\Include\osg/Texture(514): error C2065: “FilterParameter”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(514): error C2146: 语法错误: 缺少“)”(在标识符“which”的前面)
1>E:\OSG3.2.2\Include\osg/Texture(514): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>E:\OSG3.2.2\Include\osg/Texture(514): error C2059: 语法错误:“)”
1>E:\OSG3.2.2\Include\osg/Texture(524): error C2270: “getMaxAnisotropy”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(524): error C2065: “_maxAnisotropy”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(527): error C2065: “_swizzle”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(527): error C3861: “dirtyTextureParameters”: 找不到标识符
1>E:\OSG3.2.2\Include\osg/Texture(530): error C2270: “getSwizzle”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(530): error C2065: “_swizzle”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(534): error C2065: “_useHardwareMipMapGeneration”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(537): error C2270: “getUseHardwareMipMapGeneration”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(537): error C2065: “_useHardwareMipMapGeneration”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(542): error C2065: “_unrefImageDataAfterApply”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(545): error C2270: “getUnRefImageDataAfterApply”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(545): error C2065: “_unrefImageDataAfterApply”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(551): error C2065: “_clientStorageHint”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(554): error C2270: “getClientStorageHint”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(554): error C2065: “_clientStorageHint”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(560): error C2065: “_resizeNonPowerOfTwoHint”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(563): error C2270: “getResizeNonPowerOfTwoHint”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(563): error C2065: “_resizeNonPowerOfTwoHint”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(585): error C2065: “_internalFormatMode”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(588): error C2270: “getInternalFormatMode”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(588): error C2065: “_internalFormatMode”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(595): error C2065: “_internalFormatMode”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(596): error C2065: “_internalFormat”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(597): error C3861: “computeInternalFormatType”: 找不到标识符
1>E:\OSG3.2.2\Include\osg/Texture(602): error C2270: “getInternalFormat”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(602): error C2065: “_internalFormat”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(602): error C3861: “computeInternalFormat”: 找不到标识符
1>E:\OSG3.2.2\Include\osg/Texture(602): error C2065: “_internalFormat”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(605): error C2270: “isCompressedInternalFormat”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(608): error C2065: “_sourceFormat”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(611): error C2270: “getSourceFormat”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(611): error C2065: “_sourceFormat”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(614): error C2065: “_sourceType”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(617): error C2270: “getSourceType”: 非成员函数上不允许修饰符
1>E:\OSG3.2.2\Include\osg/Texture(617): error C2065: “_sourceType”: 未声明的标识符
1>E:\OSG3.2.2\Include\osg/Texture(636): error C2270: “getInternalFormatType”: 非成员函数上不允许修饰符
...全文
1630 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wentpey 2021-01-17
  • 打赏
  • 举报
回复
请问如何解决呢
feiyangqingyun 2017-09-25
  • 打赏
  • 举报
回复
一般是编码的问题

16,211

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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