PDA

View Full Version : Visual C++ .NET errors

geebus
10-23-2003, 11:24 AM
I have been having some problems with my gl.h. When I include it, I get hundreds of errors from it. Let me give you an example:
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\gl\GL.h(1152): error C2144: syntax error : 'void' should be preceded by ';'. It has worked fine before and now I am getting errors like this for every function definition. Is my header file messed up or am I missing something? Thanks in advance.

geebus

Deiussum
10-23-2003, 11:27 AM
// Do this. Note that windows.h comes BEFORE gl.h
#include <windows.h>
#include <GL/gl.h>