Jump to content
  • Advertisement
Sign in to follow this  

Link Error Please Help

This topic is 4369 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 Visual Studio.net 2003 and am trying to do Lesson 31 from NeHe. I am having the following linker error and I don't understand why? Convergence Project 6 error LNK2019: unresolved external symbol "unsigned int __cdecl LoadGLTexture(char const *)" (?LoadGLTexture@@YAIPBD@Z) referenced in function "public: void __thiscall Model::reloadTextures(void)" (?reloadTextures@Model@@QAEXXZ)
void Model::reloadTextures()
	for ( int i = 0; i < m_numMaterials; i++ )
		if ( strlen( m_pMaterials.m_pTextureFilename ) > 0 )
			m_pMaterials.m_texture = LoadGLTexture( m_pMaterials.m_pTextureFilename );
			m_pMaterials.m_texture = 0;

Share this post

Link to post
Share on other sites
I don't use visual studio, but this kind of error usualy occurs if you include a header file that defines a function called LoadGLTextures and then do not add teh corresponding .cpp file which contains the code for this function.

Take a look at the .cpp files within the project and teh folder of lesson31 whether one of those is missing in your VS project

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!