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 2 of 2

Thread: Link errors

  1. #1
    Guest

    Link errors

    gl.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
    gl.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
    gl.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12

    Anyone got an idea, please mail them to me at shadow@nightcoders.com

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,982

    Re: Link errors

    Add opengl32.lib to your project.

    In MSVC 6, this is done like this:

    Projects->Settings
    Click on the 'Link' tab.
    Add 'opengl32.lib' to Object/Library modules.


    Or just add a...

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

    ... in the beginning of the code.

Posting Permissions

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