error C2143: 语法错误 : 缺少“)”(在“常量”的前面)的问题
各位大家好,小弟有个问题请教一下,我单纯的引入公司软件的基础库没问题能正常编译
单纯的引入第三方的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”: 非成员函数上不允许修饰符