Original Post
I am learning OpenGL programming and i wrote this program but it doesn''t want to compile. I have compiled other OpenGL programs but this one gives me this weird error. Its a linking error. Anyone help me out here?
--------------------Configuration: ch2 - Win32 Debug--------------------
Linking...
ch2.obj : error LNK2001: unresolved external symbol _gluPerspective@32
ch2.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
ch2.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
ch2.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
ch2.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
ch2.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
ch2.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
ch2.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
ch2.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12
ch2.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
ch2.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
ch2.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16
ch2.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12
ch2.obj : error LNK2001: unresolved external symbol __imp__glClear@4
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/ch2.exe : fatal error LNK1120: 15 unresolved externals
Error executing link.exe.
ch2.exe - 16 error(s), 0 warning(s)
Keep It Real!