osg测试的时候,运行生成的代码,出现了如下的一堆错误问题:
14:09:17:921 生成开始于 14:09...
14:09:18:208 1>------ 已启动生成: 项目: Project3, 配置: Debug x64 ------
14:09:18:596 1>osgt1.cpp
14:09:18:932 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:966 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:966 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1158,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:966 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1158,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:966 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1158,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:966 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:966 1> 参见“WINGDIAPI”的声明
14:09:18:966 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1159,30): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:966 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1159,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:966 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:966 1> 参见“WINGDIAPI”的声明
14:09:18:966 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1159,11): error C2146: 语法错误: 缺少“;”(在标识符“GLboolean”的前面)
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:966 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1160,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:966 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1160,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1160,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:967 1> 参见“WINGDIAPI”的声明
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1161,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1161,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1161,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:967 1> 参见“WINGDIAPI”的声明
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1162,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1162,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1162,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:967 1> 参见“WINGDIAPI”的声明
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1163,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1163,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1163,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:967 1>(编译源文件“osgt1.cpp”)
14:09:18:967 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:967 1> 参见“WINGDIAPI”的声明
14:09:18:976 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1164,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:976 1>(编译源文件“osgt1.cpp”)
14:09:18:976 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1164,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:976 1>(编译源文件“osgt1.cpp”)
14:09:18:976 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1164,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:976 1>(编译源文件“osgt1.cpp”)
14:09:18:976 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:976 1> 参见“WINGDIAPI”的声明
14:09:18:976 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1165,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:976 1>(编译源文件“osgt1.cpp”)
14:09:18:976 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1165,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:976 1>(编译源文件“osgt1.cpp”)
14:09:18:976 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1165,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:976 1>(编译源文件“osgt1.cpp”)
14:09:18:976 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:976 1> 参见“WINGDIAPI”的声明
14:09:18:976 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1166,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:976 1>(编译源文件“osgt1.cpp”)
14:09:18:976 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1166,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:976 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1166,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:977 1> 参见“WINGDIAPI”的声明
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1167,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1167,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1167,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:977 1> 参见“WINGDIAPI”的声明
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1168,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1168,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1168,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:977 1> 参见“WINGDIAPI”的声明
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1169,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1169,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1169,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:977 1>(编译源文件“osgt1.cpp”)
14:09:18:977 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:977 1> 参见“WINGDIAPI”的声明
14:09:18:977 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1170,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1170,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1170,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:983 1> 参见“WINGDIAPI”的声明
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1171,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1171,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1171,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:983 1> 参见“WINGDIAPI”的声明
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1172,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1172,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1172,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:983 1> 参见“WINGDIAPI”的声明
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1173,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:983 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1173,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:983 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1173,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:992 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:992 1> 参见“WINGDIAPI”的声明
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1174,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:992 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1174,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:992 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1174,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:992 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:992 1> 参见“WINGDIAPI”的声明
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1175,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:992 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1175,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:992 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1175,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:992 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:992 1> 参见“WINGDIAPI”的声明
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1176,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:992 1>(编译源文件“osgt1.cpp”)
14:09:18:992 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1176,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1176,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:999 1> 参见“WINGDIAPI”的声明
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1177,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1177,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1177,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:999 1> 参见“WINGDIAPI”的声明
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1178,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1178,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1178,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:999 1> 参见“WINGDIAPI”的声明
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1179,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1179,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1179,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:999 1> 参见“WINGDIAPI”的声明
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1180,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1180,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1180,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:999 1> 参见“WINGDIAPI”的声明
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1181,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1181,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1181,1): error C2086: “int WINGDIAPI”: 重定义
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:18:999 1> 参见“WINGDIAPI”的声明
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1182,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1182,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:18:999 1>(编译源文件“osgt1.cpp”)
14:09:18:999 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1182,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:007 1>(编译源文件“osgt1.cpp”)
14:09:19:007 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:007 1> 参见“WINGDIAPI”的声明
14:09:19:007 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1183,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:007 1>(编译源文件“osgt1.cpp”)
14:09:19:007 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1183,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:007 1>(编译源文件“osgt1.cpp”)
14:09:19:007 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1183,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:007 1>(编译源文件“osgt1.cpp”)
14:09:19:007 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:007 1> 参见“WINGDIAPI”的声明
14:09:19:007 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1184,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:007 1>(编译源文件“osgt1.cpp”)
14:09:19:007 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1184,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:007 1>(编译源文件“osgt1.cpp”)
14:09:19:007 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1184,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:007 1>(编译源文件“osgt1.cpp”)
14:09:19:007 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:007 1> 参见“WINGDIAPI”的声明
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1185,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1185,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1185,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:008 1> 参见“WINGDIAPI”的声明
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1186,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1186,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1186,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:008 1> 参见“WINGDIAPI”的声明
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1187,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1187,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1187,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:008 1> 参见“WINGDIAPI”的声明
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1188,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1188,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1188,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:008 1>(编译源文件“osgt1.cpp”)
14:09:19:008 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:008 1> 参见“WINGDIAPI”的声明
14:09:19:014 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1189,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:014 1>(编译源文件“osgt1.cpp”)
14:09:19:014 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1189,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:014 1>(编译源文件“osgt1.cpp”)
14:09:19:014 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1189,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:014 1>(编译源文件“osgt1.cpp”)
14:09:19:014 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:014 1> 参见“WINGDIAPI”的声明
14:09:19:014 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1190,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:014 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1190,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1190,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:022 1> 参见“WINGDIAPI”的声明
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1191,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1191,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1191,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:022 1> 参见“WINGDIAPI”的声明
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1192,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1192,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1192,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:022 1> 参见“WINGDIAPI”的声明
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1193,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1193,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1193,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:022 1> 参见“WINGDIAPI”的声明
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1194,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1194,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1194,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:022 1>(编译源文件“osgt1.cpp”)
14:09:19:022 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:022 1> 参见“WINGDIAPI”的声明
14:09:19:022 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1195,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1195,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1195,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:029 1> 参见“WINGDIAPI”的声明
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1196,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1196,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1196,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:029 1> 参见“WINGDIAPI”的声明
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1197,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1197,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1197,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:029 1> 参见“WINGDIAPI”的声明
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1198,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1198,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1198,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:029 1> 参见“WINGDIAPI”的声明
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1199,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1199,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1199,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:029 1> 参见“WINGDIAPI”的声明
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1200,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1200,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1200,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:029 1> 参见“WINGDIAPI”的声明
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1201,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:029 1>(编译源文件“osgt1.cpp”)
14:09:19:029 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1201,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:035 1>(编译源文件“osgt1.cpp”)
14:09:19:035 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1201,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:035 1>(编译源文件“osgt1.cpp”)
14:09:19:035 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:035 1> 参见“WINGDIAPI”的声明
14:09:19:035 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1202,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:035 1>(编译源文件“osgt1.cpp”)
14:09:19:035 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1202,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:035 1>(编译源文件“osgt1.cpp”)
14:09:19:035 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1202,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:035 1>(编译源文件“osgt1.cpp”)
14:09:19:035 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:035 1> 参见“WINGDIAPI”的声明
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1203,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1203,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1203,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:036 1> 参见“WINGDIAPI”的声明
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1204,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1204,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1204,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:036 1> 参见“WINGDIAPI”的声明
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1205,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1205,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1205,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:036 1> 参见“WINGDIAPI”的声明
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1206,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1206,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1206,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:036 1>(编译源文件“osgt1.cpp”)
14:09:19:036 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:036 1> 参见“WINGDIAPI”的声明
14:09:19:043 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1207,11): error C2144: 语法错误:“void”的前面应有“;”
14:09:19:043 1>(编译源文件“osgt1.cpp”)
14:09:19:043 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1207,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
14:09:19:043 1>(编译源文件“osgt1.cpp”)
14:09:19:043 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1207,1): error C2086: “int WINGDIAPI”: 重定义
14:09:19:050 1>(编译源文件“osgt1.cpp”)
14:09:19:050 1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1157,1):
14:09:19:050 1> 参见“WINGDIAPI”的声明
14:09:19:050 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GL\gl.h(1207,1): error C1003: 错误计数超过 100;正在停止编译
14:09:19:050 1>(编译源文件“osgt1.cpp”)
14:09:19:050 1>已完成生成项目“Project3.vcxproj”的操作 - 失败。
14:09:19:096 ========== 生成: 0 成功,1 失败,0 最新,0 已跳过 ==========
14:09:19:096 ========== 生成 于 14:09 完成,耗时 01.230 秒 ==========
怎么解决呢?愁死了总是遇到一些奇奇怪怪的问题报出来!!!
经验证发现:添加头文件 #include <Windows.h>即可,问题解决了。
#include <Windows.h>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include <osg/Node>
#include <osgViewer/Viewer>