vs2015 cuda opengl 混编译 Error"GLboolean" has already been declared in the current scope

来源:互联网 发布:天谕凌体型捏脸数据 编辑:程序博客网 时间:2024/05/17 00:26
Severity Code Description ProjectFile LineSuppression State
Error "GLboolean" has already been declared in the current scopecuda_learn1


C:\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1159
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1157
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1158
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1159
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1160
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1161
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1162
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1163
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1164
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1165
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1166
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1167
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1168
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1169
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1170
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1171
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1172
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1173
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1174
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1175
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1176
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1177
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1178
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1179
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1180
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1181
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1182
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1183
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1184
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1185
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1186
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1187
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1188
Error expected a ";"cuda_learn1 C:\Program Files (x86)\Windows Kits


\8.1\Include\um\GL\gl.h 1189
Warning The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and 


may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).


cuda_learn1 D:\vsworkspace\cuda_learn1\cuda_learn1\CUDACOMPILE1
Error MSB3721 The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin


\nvcc.exe" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --use-local-env --cl-version 


2015 -ccbin "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin"  -I"C:\Program 


Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -I"C:\Program Files\NVIDIA GPU 


Computing Toolkit\CUDA\v8.0\include"  -G   --keep-dir Debug -maxrregcount=0  --machine 32 


--compile -cudart static  -g   -DWIN32 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 


/nologo /Od /FS /Zi /RTC1 /MDd " -o Debug\kernel.cu.obj "D:\vsworkspace


\cuda_learn1\cuda_learn1\kernel.cu"" exited with code 4.cuda_learn1 C:\Program 


Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations\CUDA 8.0.targets689
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h1
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h849
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h1787
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h2637
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h3492
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h4431
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h5345
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h6252
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h7142
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\math_functions.h7956
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h1
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h774
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_functions.h


1618
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\device_double_functions.h1
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\sm_20_intrinsics.h1
Warning C4819 The file contains a character that cannot be represented in the current 


code page (936). Save the file in Unicode format to prevent data losscuda_learn1 c:


\program files\nvidia gpu computing toolkit\cuda\v8.0\include\sm_20_intrinsics.h943
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1157
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1158
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1160
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1161
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1162
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1163
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1164
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1165
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1166
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1167
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1168
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1169
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1170
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1171
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1172
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1173
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1174
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1175
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1176
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1177
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1178
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1179
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1180
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1181
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1182
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1183
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1184
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1185
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1186
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1187
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1188
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1189
Error this declaration has no storage class or type specifiercuda_learn1 C:


\Program Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h1190
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1158
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1160
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1161
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1162
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1163
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1164
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1165
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1166
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1167
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1168
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1169
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1170
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1171
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1172
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1173
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1174
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1175
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1176
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1177
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1178
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1179
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1180
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1181
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1182
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1183
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1184
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1185
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1186
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1187
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1188
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1189
Error variable "WINGDIAPI" has already been definedcuda_learn1 C:\Program 


Files (x86)\Windows Kits\8.1\Include\um\GL\gl.h 1190
Error variable "WINGDIAPI" is not a type namecuda_learn1 C:\Program Files 


(x86)\Windows Kits\8.1\Include\um\GL\gl.h 1159


出现这中错误需要在引入gl.h前引入,window.h头文件,若不知道位置就在第一行引入,#include <window.h>
阅读全文
0 0