First program

I am trying to run an example in OpenGL

i am using this libs

gl\gl.h
gl\glut.h

but when i run the example i get many errors.

this example draws a square, so i erase the gl.h lib and it works fine.

then i tried to run another example that uses this lib

gl\gl.h
gl\glu.h
gl\glut.h

but i can’t make it run.

is there some kind of conflicts between the gl that ships with vs .NET and glut lib 3.7

glut.h call’s gl.h and glu.h

Some compilers only need to include glut.h since it includes the other.

Also you need to post what error’s message that you are getting for us to give a better answer.

Originally posted by wguerram:
[b]I am trying to run an example in OpenGL

i am using this libs

gl\gl.h
gl\glut.h

but when i run the example i get many errors.

this example draws a square, so i erase the gl.h lib and it works fine.

then i tried to run another example that uses this lib

gl\gl.h
gl\glu.h
gl\glut.h

but i can’t make it run.

is there some kind of conflicts between the gl that ships with vs .NET and glut lib 3.7[/b]

Before including gl, glu, glut, include FIRST windows.h

Available if you work under Windows.

I include the windows.h and that solve my problem.

Thanks.