Results 1 to 3 of 3

Thread: gl.h and glu.h in vc++6

  1. #1
    Guest

    gl.h and glu.h in vc++6

    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

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    USA
    Posts
    254

    Re: gl.h and glu.h in vc++6

    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).]

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: gl.h and glu.h in vc++6

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean