Connecting Tech Pros Worldwide Forums | Help | Site Map

lnk2001 error

Newbie
 
Join Date: Jul 2007
Posts: 1
#1: Jul 18 '07
i have the following error msg when i buid one of my cpp projects in visual studio 6.
pls help me, it's very urgent.

extures.obj : error LNK2001: unresolved external symbol "public: __thiscall Scene::Scene(void)" (??0Scene@@QAE@XZ)
textures.obj : error LNK2001: unresolved external symbol "public: __thiscall Robot::Robot(void)" (??0Robot@@QAE@XZ)
textures.obj : error LNK2001: unresolved external symbol "public: __thiscall Robot::~Robot(void)" (??1Robot@@QAE@XZ)
textures.obj : error LNK2001: unresolved external symbol "public: __thiscall Scene::~Scene(void)" (??1Scene@@QAE@XZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Robot::draw(void)" (?draw@Robot@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Scene::draw(void)" (?draw@Scene@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Scene::setTexturesB(void)" (?setTexturesB@Scene@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Scene::loadBitmapTextures(void)" (?loadBitmapTextures@Scene@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Robot::setupTexture(enum Robot::TextureType)" (?setupTexture@Robot@@QAEXW4TextureType@1@@Z)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Robot::genTextures(int)" (?genTextures@Robot@@QAEXH@Z)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Robot::makeFaceTexture(void)" (?makeFaceTexture@Robot@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Robot::makeTorsoTexture(void)" (?makeTorsoTexture@Robot@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Scene::setTextures(void)" (?setTextures@Scene@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Scene::change(void)" (?change@Scene@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: void __thiscall Robot::toggleTexture(void)" (?toggleTexture@Robot@@QAEXXZ)
textures.obj : error LNK2001: unresolved external symbol "public: int __thiscall Robot::incrementRotation(char,float)" (?incrementRotation@Robot@@QAEHDM@Z)
textures.obj : error LNK2001: unresolved external symbol "private: static float Scene::fog_incr" (?fog_incr@Scene@@0MA)
Debug/textures.exe : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.

textures.exe - 18 error(s), 0 warning(s)

Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Posts: 5,375
#2: Jul 18 '07

re: lnk2001 error


Your project does not have the .cpp source files for the Scene and Robot classes. All it has are the headers.
Reply