Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Lost gl.h...

  1. #1
    Guest

    Lost gl.h...

    Hi, I bought the OpenGL superbible a few weeks ago, started coding a bit, and then left for a 3 week vacation )) Yesturday I came back started coding again, replaced the gl.h by mistake and now I have about 30 unresolved externels, all the functions like glutSwapBuffers... I only can find the Mesa-3.0 gl.h header, but that doesn't make things better. Can anybody just mail me the header to jonas@eichhorst.net or is something completly different wrong???
    Thx

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Posts
    181

    Re: Lost gl.h...

    thats not a gl.h problem. if everything compiles fine and you get unresolved externals a linking problem occurs. that means you forget to link opengl32.lib (or whatever your opengl lib is called). if you use microsoft visual studio, insert it into the project settings->linker.

    good luck,
    jan

    p.s. if something is not found beginning with glu or glut, dont forget glu32.lib and glut32.lib.

    [This message has been edited by jabe (edited 11-20-2001).]

  3. #3
    Member Regular Contributor
    Join Date
    Aug 2001
    Location
    England
    Posts
    291

    Re: Lost gl.h...

    Add this to your source ...

    #pragma comment (lib, "OpenGL32.lib")

    It is equivalent to the above, but is more obvious! It simply adds the required Libs to the project.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •