View Full Version : MDI and OpenGL
08-11-2003, 01:05 AM
I write some codes based on MDI with OpenGL,after compiling which says"error LNK2001: unresolved external symbol __imp__glViewport@16",and wglCreateContext,wglMakeCurrent have the same problems.I don't know how to solve the problem.Please help me!
Rob The Bloke
08-11-2003, 04:14 AM
You need to link OpenGl32.lib glu32.lib
08-11-2003, 04:23 PM
Thank you!I will try!
08-11-2003, 04:50 PM
I have already added "gl.h" and "glu.h" to it.But it still has the same problem.
08-11-2003, 11:23 PM
No,the libs are different with header.You should link the libs when you compile the c++ files.In VC6 ,you can press "alt+f7" to activate the project setting and in the "link" tab,add the glu32.lib and opengl32.lib ,glaux.lib "object/libary modules" field.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.