Compiling?

Started by
3 comments, last by jonknet 22 years, 7 months ago
Whenever I try to compile any file with gl.h included I get errors in the gl.h file. Im using MSVC++98. Sorry if this seems too vague but I don''t think gl.h should be doing this. Anyone else get errors?
Advertisement
Are you linking the libraries?

[Resist Windows XP''s Invasive Production Activation Technology!]
It could be a few things. Either you're not linking with the correct libraries, or, if you're using win32, try including windows.h before you include gl.h. gl.h requires APIENTRY and WINGDIAPI to be defined (which is done in windows.h).

Edited by - davidko on October 1, 2001 5:03:54 PM
ok linking the libs got rid of some of the errors. but when i try to link i get an unresolved ext symbol WinMain. do all ogl programs need a winmain start point as opposed to a main start point? thanks
No. But all Win32 programs do (normally).

[Resist Windows XP''s Invasive Production Activation Technology!]

This topic is closed to new replies.

Advertisement