PDA

View Full Version : Errors in gl.h when compiling



PilotC150
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?

- Chris

P.S. I'm using MS VC++ 98 compiling in XP Pro.

gavnook
01-29-2004, 01:07 AM
make sure you #include windows.h before gl.h, and wth is VC++ 98?

rarefluid
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?

rarefluid
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...

plasmonster
06-18-2004, 08:45 PM
windows.h includes the WINGDIAPI and APIENTRY definitions that gl.h depends on.

rarefluid
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...