Jump to content
  • Advertisement
Sign in to follow this  
3vil

Odd Linker Errors (Unresolved)

This topic is 4834 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 using VC++ 6. OpenGL: Latest Version Modules: kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib glut32.lib glu32.lib glaux.lib Common Errors: ProjectName.obj : error LNK2001: unresolved external symbol _glGetString ProjectName.obj : error LNK2001: unresolved external symbol _glDisable ProjectName.obj : error LNK2001: unresolved external symbol _glColorPointer ProjectName.obj : error LNK2001: unresolved external symbol _glTexEnvf ProjectName.obj : error LNK2001: unresolved external symbol _glEnable ProjectName.obj : error LNK2001: unresolved external symbol _glBindTexture ProjectName.obj : error LNK2001: unresolved external symbol _glDisableClientState ProjectName.obj : error LNK2001: unresolved external symbol _glDrawElements ProjectName.obj : error LNK2001: unresolved external symbol _glTexCoordPointer ProjectName.obj : error LNK2001: unresolved external symbol _glNormalPointer ProjectName.obj : error LNK2001: unresolved external symbol _glEnableClientState ProjectName.obj : error LNK2001: unresolved external symbol _glVertexPointer ProjectName.obj : error LNK2001: unresolved external symbol _glCallList ProjectName.obj : error LNK2001: unresolved external symbol _glEnd ProjectName.obj : error LNK2001: unresolved external symbol _glVertex3f ProjectName.obj : error LNK2001: unresolved external symbol _glNormal3f ProjectName.obj : error LNK2001: unresolved external symbol _glTexCoord2f ProjectName.obj : error LNK2001: unresolved external symbol _glBegin ProjectName.obj : error LNK2001: unresolved external symbol _glDeleteLists ProjectName.obj : error LNK2001: unresolved external symbol _glTexImage2D ProjectName.obj : error LNK2001: unresolved external symbol _glTexParameteri ProjectName.obj : error LNK2001: unresolved external symbol _glPixelStorei ProjectName.obj : error LNK2001: unresolved external symbol _glGenTextures ProjectName.obj : error LNK2001: unresolved external symbol _LoadTgaImage ProjectName.obj : error LNK2001: unresolved external symbol _glEndList ProjectName.obj : error LNK2001: unresolved external symbol _glNewList ProjectName.obj : error LNK2001: unresolved external symbol _glGenLists LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/ProjectName.exe : fatal error LNK1120: 28 unresolved externals Error executing link.exe. If somone could tell me what I am doing wrong it is greatly apreciated. I usually used DirectX and just got into OpenGL. Thank You.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
strange. such errors usually appear when you forget to add libs to your project, but according to what you wrote you have all the needed libs. check your project settings, maybe something's wrong with them.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
one more thing. maybe you included libs to your project only in debug and now you're trying to compile in version or vice versa. try to add OpenGL libs (opengl32.lib glut32.lib glu32.lib glaux.lib) through #pragma thing.
#pragma comment(lib,"opengl32.lib")
#pragma commant(lib,"glut32.lib")
etc

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!