View Full Version : Errors in gl.h when compiling
01-28-2004, 05:41 PM
I'm getting a BUNCH of errors when compiling a simple program. It's comes at the "#include <GL/gl.h>" then about 100 errors within the header file. Most of them deal with "WINGDIAPI."
I think I have the most updated header files for gl.h, glu.h and glut.h. Anybody have any ideas or come across this problem before?
P.S. I'm using MS VC++ 98 compiling in XP Pro.
01-29-2004, 12:07 AM
make sure you #include windows.h before gl.h, and wth is VC++ 98?
06-18-2004, 04:32 PM
Sorry for reviving this thread, but I'm interested WHY that is necessary. Is that the VC complaining, or is it a problem with gl.h?
06-18-2004, 04:35 PM
...as this issue somehow p%s&es me off... ;-)
I was writing some classes in VC and spent hours searching for what was going wrong. Finally I gave up and searched the forum just to see that it wasn't my damn fault...
06-18-2004, 08:45 PM
windows.h includes the WINGDIAPI and APIENTRY definitions that gl.h depends on.
06-19-2004, 04:14 AM
Thank you for answering. So I could port my classes to UNIX without changing anything but the #include <windows.h>... That's a relief somehow...
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.