PDA

View Full Version : gl.h and glu.h in vc++6



11-14-2002, 04:45 PM
After I install glut.h and its library and dll file, do gl.h and glu.h become useless? I am asking this because when I try to compile list.c from Red Book, there was error message saying that there are error in gl.h. And it did compile only after I deleted gl.h and glu.h, and left only glut.h in the program. Thanks

Stack Overflow
11-14-2002, 04:50 PM
Some programs programmed with VC++ don't need the header files included all the time. So answering your question, the answer is yes and no. Some programs will need gl.h and glu.h, and other's won't. It depends on what your programming.

[This message has been edited by VC6-OGL (edited 11-14-2002).]

nexusone
11-14-2002, 05:08 PM
It depends on the compiler and glut.h you have.

glut.h has gl.h and glu.h defined in it.

for example my compiler works fine with gl.h and glu.h defind in the glut.h, others may need it defined outside of glut.h


Originally posted by alan:
After I install glut.h and its library and dll file, do gl.h and glu.h become useless? I am asking this because when I try to compile list.c from Red Book, there was error message saying that there are error in gl.h. And it did compile only after I deleted gl.h and glu.h, and left only glut.h in the program. Thanks