Thread: OpenGL Headers and Libraries

  1. #1
    Registered User Invincible's Avatar
    Join Date
    Feb 2002
    Posts
    210

    Question OpenGL Headers and Libraries

    Where on earth can I find these files? I tried SGI, yes they have them. They're bundled in an SDK that you have to have a membership to get. Well, I completed the membership application, and I got an email saying I had access, but my password doesn't seem to work.

    Is there anywhere else to get these files:

    opengl32.h, opengl32.lib, opengl.h, opengl.lib

    and the ones for glut too, although I think I can get these

    glu32.h, glu32.lib, glu.h, glu.lib, glut32.h glut32.lib, glut.h, glut.lib
    "The mind, like a parachute, only functions when open."

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    The headers should come with your compiler as should the libs although the exact names and extensions may be different eg mingw would name them something like libopengl32.a

    This question would possibly be better directed at the Gaming Forum...?
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User Invincible's Avatar
    Join Date
    Feb 2002
    Posts
    210
    I'm using VC 6. I should have mentioned that. I thought the same thing. According to the tutorials I read, they should be listed in my header file as the opengl32 version, but I couldn't find them.

    I'll look again, for like names, but I don't think they're there.

    This question would possibly be better directed at the Gaming Forum...?
    Ahh yeah .... but I can't cross-post now
    Last edited by Invincible; 02-13-2002 at 05:33 PM.
    "The mind, like a parachute, only functions when open."

  4. #4
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    in MSVC this should work

    #include<gl/gl.h>
    #include<gl/glu.h>

    >opengl32.h, opengl32.lib, opengl.h, opengl.lib

    included with windows and MSVC

    >glu32.h, glu32.lib, glu.h, glu.lib, glut32.h glut32.lib, glut.h, glut.lib

    glu and glut are seperate entities, glu is included with windows and MSVC and glut must be downloaded seperately.

    http://www.opengl.org should have everything you need.

    GLU32.lib and and OpenGL32.lib can be found on a default install here

    C:\Program Files\Microsoft Visual Studio\VC98\Lib\

    the headers are here

    C:\Program Files\Microsoft Visual Studio\VC98\Include\GL
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    If headers are not in include\gl directory and the libs are absent from your lib directory then:

    1. Go get 'em from ms
    2. If not 1. then re-install msvc.

    Repeat steps until successful.

    You may also consider downloading the aug2001psdk from ms - it certainly has the full bifter.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  6. #6
    Registered User alex's Avatar
    Join Date
    Sep 2001
    Posts
    132
    There is an alternative OpenGL implementation (gpl)... Take a peek at http://www.mesa3d.org.

  7. #7
    Registered User Invincible's Avatar
    Join Date
    Feb 2002
    Posts
    210

    Thumbs up

    Ok I've made an ass of myself. The GL Folder was the the very first one in my include folder. I guess I was looking for a header file and not a folder. My mistake.

    But hey, no-one, all I have in there is GL.h, glu.h, and glaux.h

    Do I need any of the others to do opengl in widows? I hadn't even heard about Glaux and GL headers yets.

    And as far as cross-platform, what additional headers will I want?
    Now that I know I can get them from MS doh....


    Thanks, invincible
    "The mind, like a parachute, only functions when open."

  8. #8
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    if any you might get glut if you don't want to use win32, other than that you really won't need much else.

    >
    But hey, no-one, all I have in there is GL.h, glu.h, and glaux.h

    Do I need any of the others to do opengl in widows? I hadn't even heard about Glaux and GL headers yets.
    <

    thats all you should have there,

    GL.h is the header for OpenGL.
    glu.h defines some handy functions and other utilities to help you.
    glaux.h is the same a glu.h but its purpose is a little different.

    basically glu and glaux are just extension libs, there not truely necessary to use opengl that may be why you havn't theard of them.

    glut can be found here:

    http://www.opengl.org/developers/doc...tion/glut.html
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  9. #9
    Registered User Invincible's Avatar
    Join Date
    Feb 2002
    Posts
    210
    Thanks for all your help. I'm getting it now

    Also I've been looking at some of the better demos in openGL, and you were right it does look sharp.
    "The mind, like a parachute, only functions when open."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  2. Dev-C++ Headers and Libraries
    By Mithoric in forum Windows Programming
    Replies: 2
    Last Post: 03-12-2004, 03:27 PM
  3. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM
  4. Libraries and headers
    By darksaidin in forum C++ Programming
    Replies: 10
    Last Post: 07-23-2003, 06:24 AM
  5. Headers, Libraries and the rest
    By nickname_changed in forum C++ Programming
    Replies: 8
    Last Post: 06-23-2003, 08:17 PM