View Full Version : Errors in gl.h when compiling
01-28-2004, 06: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, 01:07 AM
make sure you #include windows.h before gl.h, and wth is VC++ 98?
06-18-2004, 05: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, 05: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, 09:45 PM
windows.h includes the WINGDIAPI and APIENTRY definitions that gl.h depends on.
06-19-2004, 05: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.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.