openGL

Hey I am using Microsoft Visual Studio 2010 and I want to learn openGL

I have openGL include files in
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include\gl
lib files
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib

and opengl32.dll in windows system32 directory.

But when I #include <gl\GL.h> I instantly get heaps of errors.


Some of the errors include;
1
2
3
4
5
6
Error	1	error C2144: syntax error : 'void' should be preceded by ';'
Error	2	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	
Error	3	error C2146: syntax error : missing ';' before identifier 'glAccum'	
Error	4	error C2182: 'APIENTRY' : illegal use of type 'void'	
Error	5	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Error	6	error C2144: syntax error : 'void' should be preceded by ';'


What am I doing wrong?
Please provide a minimal example.
What do you mean?
Linking libraries. Project->Settings. Select link tab. In the Object\libraries field, type either of
these: For Microsoft's OpenGL: opengl32.lib glu32.lib glut32.lib.

If u are already using glut.h
Comment out the line #include <GL\gl.h>. The header file glut.h includes gl.h.
Topic archived. No new replies allowed.