Archived

This topic is now archived and is closed to further replies.

Compiling?

This topic is 5952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites