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: unresolved external symbol Errors with glut

  1. #1
    Guest

    unresolved external symbol Errors with glut

    write a siple code, i get this errors:
    stipple.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
    stipple.obj : error LNK2001: unresolved external symbol __imp__glFlush@0
    stipple.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glLineWidth@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
    stipple.obj : error LNK2001: unresolved external symbol __imp__glVertex2f@8
    stipple.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glLineStipple@8
    stipple.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
    stipple.obj : error LNK2001: unresolved external symbol __imp__glClear@4
    stipple.obj : error LNK2001: unresolved external symbol _gluOrtho2D@32
    stipple.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
    stipple.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
    stipple.obj : error LNK2001: unresolved external symbol _glutMainLoop@0
    stipple.obj : error LNK2001: unresolved external symbol _glutReshapeFunc@4
    stipple.obj : error LNK2001: unresolved external symbol _glutDisplayFunc@4
    stipple.obj : error LNK2001: unresolved external symbol _glutCreateWindow@4
    stipple.obj : error LNK2001: unresolved external symbol _glutInitWindowPosition@8
    stipple.obj : error LNK2001: unresolved external symbol _glutInitWindowSize@8
    stipple.obj : error LNK2001: unresolved external symbol _glutInitDisplayMode@4
    stipple.obj : error LNK2001: unresolved external symbol _glutInit@8
    Debug/stipple.exe : fatal error LNK1120: 24 unresolved externals
    Error executing link.exe.

    stipple.exe - 25 error(s), 0 warning(s)
    How do i get out of it?

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

    Re: unresolved external symbol Errors with glut

    The error is due to you not having the opengl library's listed in your linker?
    Go to your linker setup and add opengl32.lib, glu32.lib, glut32.lib!


    Originally posted by Aviv:
    write a siple code, i get this errors:
    stipple.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
    stipple.obj : error LNK2001: unresolved external symbol __imp__glFlush@0
    stipple.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glLineWidth@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
    stipple.obj : error LNK2001: unresolved external symbol __imp__glVertex2f@8
    stipple.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glLineStipple@8
    stipple.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
    stipple.obj : error LNK2001: unresolved external symbol __imp__glClear@4
    stipple.obj : error LNK2001: unresolved external symbol _gluOrtho2D@32
    stipple.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
    stipple.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
    stipple.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
    stipple.obj : error LNK2001: unresolved external symbol _glutMainLoop@0
    stipple.obj : error LNK2001: unresolved external symbol _glutReshapeFunc@4
    stipple.obj : error LNK2001: unresolved external symbol _glutDisplayFunc@4
    stipple.obj : error LNK2001: unresolved external symbol _glutCreateWindow@4
    stipple.obj : error LNK2001: unresolved external symbol _glutInitWindowPosition@8
    stipple.obj : error LNK2001: unresolved external symbol _glutInitWindowSize@8
    stipple.obj : error LNK2001: unresolved external symbol _glutInitDisplayMode@4
    stipple.obj : error LNK2001: unresolved external symbol _glutInit@8
    Debug/stipple.exe : fatal error LNK1120: 24 unresolved externals
    Error executing link.exe.

    stipple.exe - 25 error(s), 0 warning(s)
    How do i get out of it?

  3. #3
    Guest

    Re: unresolved external symbol Errors with glut

    thank uoy, now its down to:
    stipple.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
    stipple.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
    Debug/stipple.exe : fatal error LNK1120: 2 unresolved externals
    Error executing link.exe.
    what next?

Posting Permissions

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