View Full Version : include libraries not working

06-25-2004, 10:09 AM
Granted, I don't know much about OpenGL or C++, but I'm getting problems just copying beginning code out of the guide. For some reason I get a number of errors when I build anything with <GL/gl.h>. They include:
C2501: 'WINGDIAPI' : missing storage-class or type specifiers
C2086: 'int WINGDIAPI' : redefinition
C2144: syntax error : 'void' should be preceded by ';'
among others. If I could get some insight to this, it would be greatly appreciated. Thanks

06-25-2004, 10:14 AM
Try to put #include <windows.h> before or after gl.h.