-
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!
-
Advanced Member
Frequent Contributor
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
-
Re: link error in release version
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules