## 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[i].m_pTextureFilename ) > 0 )
else
m_pMaterials[i].m_texture = 0;
}



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

## Create an account

Register a new account

• ## Partner Spotlight

• ### Forum Statistics

• Total Topics
627684
• Total Posts
2978627

• 9
• 14
• 12
• 10
• 12