PDA

View Full Version : Errors..



Nial
03-25-2002, 05:51 AM
I tried following Jeff Molofee's OpenGL tutorial (his first one) i which you try to make a small window.

But when Visual C++ 6.0 attempted to link my project I got thses errors:

opgl.obj : error LNK2001: unresolved external symbol _gluPerspective@32
opgl.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
opgl.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
opgl.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
opgl.obj : error LNK2001: unresolved external symbol __imp__glHint@8
opgl.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4
opgl.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
opgl.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8
opgl.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
opgl.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
opgl.obj : error LNK2001: unresolved external symbol __imp__glClear@4
opgl.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
opgl.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
opgl.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4

How can I fix this as its external, so im not sure what to do!

I copyed and pasted his code

mikael_aronsson
03-25-2002, 05:57 AM
Hi !

You must add opengl32.lib and glu32.lib to your project, (Project/Settings/Linker/Input)

Mikael