Skip to main content
gamedev.net
🔒 Locked

Compiling Error

Started by clubhi Jul 12, 2004 at 11:46 PM 4 replies 600+ views
Original Post
clubhi
clubhi
I posted at the bottom the error messages I am getting. I have trying to compile lesson1 from nehe. I have been programming in opengl for a few years. I know that a problem can be that I did not include windows.h and that I did not include it first. But that is not the case. Like I said I downloaded nehe's lesson 1, which I know should work. I am compiling this on a brand new system. Any suggestions? --------------------Configuration: lesson1 - Win32 Debug-------------------- Compiling... Lesson1.cpp c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void' c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGGDIAPI' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found Error executing cl.exe. lesson1.exe - 3 error(s), 0 warning(s)
SiCrane
SiCrane
Which Lesson 1 source package are you using?
clubhi
clubhi
vc++ 6.0...

It is not a problem with a source package. Not of my old projects run. a barebones program with just the include files gives me the same error.

kanzler
kanzler
Why is this still not mentioned in the forum faq???

Include windows.h before including gl.h and your errors will magically disappear. And use the forum search function!
clubhi
clubhi
If you actually read my question you would see that I have tried that. I did do a search and that seemed to be almost everyones solution. But it is not mine =(.
kanzler
kanzler
I know for sure these errors are related to a missing windows.h because I have seen this before a million times, like many other users of this forum. The only strange is that:
Quote:
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGGDIAPI' : missing storage-class or type specifiers
should read
Quote:
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
If this is not a copy-paste error there is something wrong with your visual studio installation and you should reinstall.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.