|
-
Nov 30th, 2002, 02:30 PM
#1
Thread Starter
Addicted Member
OpenGL Header errors
I'm not sure if this is a widely-known problem or not but here goes:
When I include the Gl.h file in 4 or more files (Header files for classes) I start getting compilation errors, saying that the GL.h file has errors in it:
d:\program files\visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
d:\program files\visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
d:\program files\visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
I'm guessing that there is nothing wrong with the GL.h file, but why does the inclusion of the header file create these errors?
If you need more information, please ask.
Using Visual Studio .NET 2005
-
Nov 30th, 2002, 02:38 PM
#2
Monday Morning Lunatic
Under Windows, you need to include windows.h before GL.h.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 30th, 2002, 02:44 PM
#3
Thread Starter
Addicted Member
Using Visual Studio .NET 2005
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|