PDA

View Full Version : Tried to build the sphere example that came with the sdk and got errors



Michael
02-12-2000, 12:30 PM
Any idea what I did wrong? These were the errors: (Thanks!)

--------------------Configuration: sphere - Win32 Debug--------------------
Linking...
sphere.obj : error LNK2001: unresolved external symbol __imp__glFinish@0
sphere.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
sphere.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
sphere.obj : error LNK2001: unresolved external symbol __imp__glDisableClientState@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glNormalPointer@12
sphere.obj : error LNK2001: unresolved external symbol __imp__glVertexPointer@16
sphere.obj : error LNK2001: unresolved external symbol __imp__glEnableClientState@4
sphere.obj : error LNK2001: unresolved external symbol __imp__wglGetProcAddress@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glGetString@4
sphere.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
sphere.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
sphere.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glClear@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glMaterialf@12
sphere.obj : error LNK2001: unresolved external symbol __imp__glMaterialfv@12
sphere.obj : error LNK2001: unresolved external symbol __imp__glLightfv@12
sphere.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12
sphere.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
sphere.obj : error LNK2001: unresolved external symbol __imp__glFrustum@48
sphere.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
sphere.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
sphere.obj : error LNK2001: unresolved external symbol __imp__glDrawElements@16
sphere.obj : error LNK2001: unresolved external symbol __imp__glInterleavedArrays@12
sphere.obj : error LNK2001: unresolved external symbol __imp__glArrayElement@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glDrawArrays@12
sphere.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
sphere.obj : error LNK2001: unresolved external symbol __imp__glVertex3fv@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glNormal3fv@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
sphere.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/sphere.exe : fatal error LNK1120: 35 unresolved externals
Error executing link.exe.

sphere.exe - 36 error(s), 0 warning(s)

Gorg
02-12-2000, 12:55 PM
You have to go in your project settings.

then go the link tab and add:

opengl32.lib, glu32.lib, glaux32.lib

Michael
02-12-2000, 02:21 PM
Ok, thanks!