I was doing lesson 1 of NeHe’s openGL lessons and my code works in the workspace provided on the website, but whenever i try and run it in my own workspace, it gives me this…
--------------------Configuration: opengl1 - Win32 Debug--------------------
Compiling…
opengl1.cpp
Linking…
opengl1.obj : error LNK2001: unresolved external symbol _gluPerspective@32
opengl1.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
opengl1.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
opengl1.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
opengl1.obj : error LNK2001: unresolved external symbol __imp__glHint@8
opengl1.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4
opengl1.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
opengl1.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8
opengl1.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
opengl1.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
opengl1.obj : error LNK2001: unresolved external symbol __imp__glClear@4
opengl1.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
opengl1.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
opengl1.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
Debug/opengl1.exe : fatal error LNK1120: 14 unresolved externals
Error executing link.exe.
opengl1.exe - 15 error(s), 0 warning(s)
I’m setting it up as a Win32 Application…does anyone know why it doesn’t work when I try to make my own workspace?