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: linker errors need help C++

  1. #1
    Intern Contributor
    Join Date
    Apr 2005
    Posts
    85

    linker errors need help C++

    --------------------Configuration: core - Win32 Debug--------------------
    Linking...
    core.obj : error LNK2001: unresolved external symbol _glutPostRedisplay@0
    core.obj : error LNK2001: unresolved external symbol _glutSwapBuffers@0
    core.obj : error LNK2001: unresolved external symbol "int __cdecl DrawGLScene(void)" (?DrawGLScene@@YAHXZ)
    core.obj : error LNK2001: unresolved external symbol _glutMainLoop@0
    core.obj : error LNK2001: unresolved external symbol _glutKeyboardFunc@4
    core.obj : error LNK2001: unresolved external symbol "void __cdecl CheckKeys(unsigned char,int,int)" (?CheckKeys@@YAXEHH@Z)
    core.obj : error LNK2001: unresolved external symbol _glutReshapeFunc@4
    core.obj : error LNK2001: unresolved external symbol "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
    core.obj : error LNK2001: unresolved external symbol _glutDisplayFunc@4
    core.obj : error LNK2001: unresolved external symbol "int __cdecl InitGL(void)" (?InitGL@@YAHXZ)
    core.obj : error LNK2001: unresolved external symbol _glutCreateWindow@4
    core.obj : error LNK2001: unresolved external symbol _glutInitWindowSize@8
    core.obj : error LNK2001: unresolved external symbol _glutInitDisplayMode@4
    core.obj : error LNK2001: unresolved external symbol _glutInit@8
    Debug/core.exe : fatal error LNK1120: 14 unresolved externals
    Error executing link.exe.

    core.exe - 15 error(s), 0 warning(s)

    maybe my glut header is old or something??

    it says its from 2003 and its 20.844bytes
    glut.h

    maybe the header is not the problem!!??
    its not my code i got it from someone but ive been getting the same or similar linker errors on other sources too seems like its something to do with glut help please!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: linker errors need help C++

    Hi !

    You must add the glut import library to your project, under linker/input you can add import libraries, just add glut.lib (or if it is glut32.lib, not sure).

    Mikael

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,663

    Re: linker errors need help C++

    download the latest glut libraries. They are available at this page:

    http://www.opengl.org/resources/libr...downloads.html

Posting Permissions

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