Archived

This topic is now archived and is closed to further replies.

n3urai

Compile Problem

Recommended Posts

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!

Share this post


Link to post
Share on other sites
it does too compile, you are getting a linker error. learn proper terminology....

link "OpenGL32.lib".

and if you have a WinMain function then create a Win32 application not console.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

Share this post


Link to post
Share on other sites