PDA

View Full Version : First program



wguerram
06-17-2003, 06:15 AM
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

nexusone
06-17-2003, 06:29 AM
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:
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

Leyder Dylan
06-17-2003, 12:31 PM
Before including gl, glu, glut, include FIRST windows.h

Available if you work under Windows.

wguerram
06-18-2003, 05:23 AM
I include the windows.h and that solve my problem.

Thanks.