저는 OpenGL 및 Visual Studio의 초보자입니다. VS2010을 사용하고 있으며 OpenGL을 설정할 때 몇 가지 문제를 만났습니다. NVDIA SDK를 다운로드 했으므로 gl.h 및 다른 헤더 파일이 포함 디렉토리에 있습니다. glut32.dll을 내 소스 파일과 같은 디렉토리에 저장했습니다. system32 아래에 glut32.dll을 넣으면 작동하지 않습니다. 탐색기를 사용하여 파일을 볼 수 있지만 VS2010을 비롯한 다른 응용 프로그램에서는 볼 수 없습니다. lib 파일을 올바른 Windows SDK 폴더에 넣고 링커 glut32.lib glu32.lib opengl32.lib를 프로젝트에 추가했습니다. 나는 온라인 이 코드를 발견 http://uowteaminvincible.wordpress.com/2010/06/23/getting-started-with-opengl-and-glut-in-microsoft-visual-studio-2008-in-windows-vista/opengl 및 visual studio 2010 설정 문제
또한 많은 오류가있다 (그러나 컴파일 할 수 및 실행) (심지어 내가 결국 일부 기능을 주석 처리)
이 나에게 쓰기 창 그러나 아무것도 제공하지 않습니다
도와주세요. 고맙습니다!
또한 gl.h 전에 WINDOWS.H 포함
1 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1152 1
2 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1152 11
3 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1153 1
4 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1153 11
5 IntelliSense: variable "WINGDIAPI" is not a type name c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1154 1
6 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1154 21
7 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1155 1
8 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1155 11
9 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1156 1
10 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1156 11
11 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1157 1
12 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1157 11
13 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1158 1
14 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1158 11
15 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1159 1
16 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1159 11
17 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1160 1
18 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1160 11
19 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1161 1
20 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1161 11
21 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1162 1
22 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1162 11
23 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1163 1
24 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1163 11
25 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1164 1
26 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1164 11
27 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1165 1
28 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1165 11
29 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1166 1
30 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1166 11
31 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1167 1
32 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1167 11
33 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1168 1
34 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1168 11
35 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1169 1
36 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1169 11
37 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1170 1
38 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1170 11
39 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1171 1
40 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1171 11
41 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1172 1
42 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1172 11
43 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1173 1
44 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1173 11
45 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1174 1
46 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1174 11
47 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1175 1
48 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1175 11
49 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1176 1
50 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1176 11
51 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1177 1
52 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1177 11
53 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1178 1
54 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1178 11
55 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1179 1
56 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1179 11
57 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1180 1
58 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1180 11
59 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1181 1
60 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1181 11
61 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1182 1
62 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1182 11
63 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1183 1
64 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1183 11
65 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1184 1
66 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1184 11
67 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1185 1
68 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1185 11
69 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1186 1
70 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1186 11
71 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1187 1
72 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1187 11
73 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1188 1
74 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1188 11
75 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1189 1
76 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1189 11
77 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1190 1
78 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1190 11
79 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1191 1
80 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1191 11
81 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1192 1
82 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1192 11
83 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1193 1
84 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1193 11
85 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1194 1
86 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1194 11
87 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1195 1
88 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1195 11
89 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1196 1
90 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1196 11
91 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1197 1
92 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1197 11
93 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1198 1
94 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1198 11
95 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1199 1
96 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1199 11
97 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1200 1
98 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1200 11
99 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1201 1
100 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1201 11