Ok, now this is annoying beyond belief. I just sat down and have found an opengl tutorial. I need to include the following headers: gl\gl.h and gl\glu.h
Here's my code so far:
Code:
#include <gl\gl.h>
#include <gl\glu.h>
int WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
return 0;
}
Now I know it has nothing to do with lib files as my directories are set up properly, I just checked them. Here's the error:
Code:
--------------------Configuration: gl - Win32 Debug--------------------
Compiling...
main.cpp
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
gl.exe - 3 error(s), 0 warning(s)
It's very bizzare to say the least. BTW I'm using VC++ 6