Jump to content
  • Advertisement

Archived

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

Compile Problem

This topic is 5827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!