Hi all.
I have been trying to teach myself a little opengl and I have the Visual C++ 2005 express edition. Now I am sure the the biggest problem is the express part, but I downloaded the windows SDK like another thread suggested. I also used the #pragma command (I know it is is bad practice) Well the linker works butit says that gl.h has syntax errors. So I am very confused. Here is just a simple program I made just to import the files.
#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"glu32.lib")
#include "C:\ProgramFiles\MicrosoftSDKs\Windows\v1.0\Include\gl\gl.h"
#include"C:\ProgramFiles\MicrosoftSDKs\Windows\v1.0\Include\gl\glu.h"
void main()
{
}
Yes I know I used a static include as well. I am merely trying to start a simple openGL. Again it says that gl.h has a syntax error on this line.
WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
debugger says void should be followed by a ;
Any help or is Visual C++ 2005 Express incapable of actually programming openGL?
If this is a dumb question I am sorry but I am new to Graphical programming.
Cheers
BlackManta