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: link error in release version

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2004
    Location
    USA
    Posts
    5

    link error in release version

    Hi,

    I have a VC++ program which uses OpenGL functions. The program works well under debug version. But if I build it in release version. It won't compile and gives some link errors:

    error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
    error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
    error LNK2001: unresolved external symbol __imp__wglCreateContext@4
    error LNK2001: unresolved external symbol __imp__glColor3f@12

    What is the reason for this error? And how to fix it?

    Thanks!

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2004
    Posts
    990

    Re: link error in release version

    set your active configuration to 'debug'. Then go to Project->Settings and copy the line in 'object/library modules' to the clipboard.
    Next, set your active configuration to 'release'. Go to Project->Settings and paste the line in the clipboard to 'object/library modules'. Change the libraries from debug to release version where desired.

    Greetz,

    Nico

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2004
    Location
    USA
    Posts
    5

    Re: link error in release version

    Thanks, NiCo!

Posting Permissions

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