Sign in to follow this  
Tertsi

Debug version building weird unresolved externals

Recommended Posts

I'm using VC++ 7 and building the release version of my program works fine. Yet when I try to build the debug version with the default debug settings + the same lib includes as the release version has, it gives me 18 unresolved externals. :S
BoN_AI.obj : error LNK2019: unresolved external symbol "public: bool __thiscall BoNupdateunit::trainunit(unsigned int,unsigned int,bool,int,bool,class BoNunits *,class BoNclans *)" (?trainunit@BoNupdateunit@@QAE_NII_NH0PAVBoNunits@@PAVBoNclans@@@Z) referenced in function "private: void __thiscall BoNAI::do_training(unsigned int,class BoNclans *,class BoNunits *,class BoNdateschedule *,class BoNupdateunit *)" (?do_training@BoNAI@@AAEXIPAVBoNclans@@PAVBoNunits@@PAVBoNdateschedule@@PAVBoNupdateunit@@@Z)
BoN_mouseinputlogic.obj : error LNK2001: unresolved external symbol "public: bool __thiscall BoNupdateunit::trainunit(unsigned int,unsigned int,bool,int,bool,class BoNunits *,class BoNclans *)" (?trainunit@BoNupdateunit@@QAE_NII_NH0PAVBoNunits@@PAVBoNclans@@@Z)
BoN_AI.obj : error LNK2019: unresolved external symbol "public: bool __thiscall BoNupdateunit::trainclan(unsigned int,bool,int,bool,class BoNunits *,class BoNclans *)" (?trainclan@BoNupdateunit@@QAE_NI_NH0PAVBoNunits@@PAVBoNclans@@@Z) referenced in function "private: void __thiscall BoNAI::do_training(unsigned int,class BoNclans *,class BoNunits *,class BoNdateschedule *,class BoNupdateunit *)" (?do_training@BoNAI@@AAEXIPAVBoNclans@@PAVBoNunits@@PAVBoNdateschedule@@PAVBoNupdateunit@@@Z)
BoN_mouseinputlogic.obj : error LNK2001: unresolved external symbol "public: bool __thiscall BoNupdateunit::trainclan(unsigned int,bool,int,bool,class BoNunits *,class BoNclans *)" (?trainclan@BoNupdateunit@@QAE_NI_NH0PAVBoNunits@@PAVBoNclans@@@Z)
BoN_AI.obj : error LNK2019: unresolved external symbol "public: void __thiscall BoNupdateunit::resurrect(unsigned int,unsigned int,bool,class BoNunits *,class BoNclans *)" (?resurrect@BoNupdateunit@@QAEXII_NPAVBoNunits@@PAVBoNclans@@@Z) referenced in function "public: void __thiscall BoNAI::do_managementtasks(bool,class BoNclans *,class BoNunits *,class BoNdateschedule *,class BoNupdateunit *,class BoNspells *)" (?do_managementtasks@BoNAI@@QAEX_NPAVBoNclans@@PAVBoNunits@@PAVBoNdateschedule@@PAVBoNupdateunit@@PAVBoNspells@@@Z)
BoN_mouseinputlogic.obj : error LNK2001: unresolved external symbol "public: void __thiscall BoNupdateunit::resurrect(unsigned int,unsigned int,bool,class BoNunits *,class BoNclans *)" (?resurrect@BoNupdateunit@@QAEXII_NPAVBoNunits@@PAVBoNclans@@@Z)
BoN_dateschedule.obj : error LNK2019: unresolved external symbol "public: void __thiscall BoNupdateunit::type(unsigned int,class BoNunits *)" (?type@BoNupdateunit@@QAEXIPAVBoNunits@@@Z) referenced in function "public: void __thiscall BoNdateschedule::updateround(class BoNclans *,class BoNunits *,class BoNunitpayment *,class BoNspells *,class BoNupdateunit *)" (?updateround@BoNdateschedule@@QAEXPAVBoNclans@@PAVBoNunits@@PAVBoNunitpayment@@PAVBoNspells@@PAVBoNupdateunit@@@Z)
BoN_game.obj : error LNK2019: unresolved external symbol "public: void __thiscall MGEsound::play(int,bool)" (?play@MGEsound@@QAEXH_N@Z) referenced in function "private: void __thiscall BoNgame::load_menu(void)" (?load_menu@BoNgame@@AAEXXZ)
BoN_mouseinputlogic.obj : error LNK2001: unresolved external symbol "public: void __thiscall MGEsound::play(int,bool)" (?play@MGEsound@@QAEXH_N@Z)
BoN_game.obj : error LNK2019: unresolved external symbol "public: bool __thiscall MGEsound::isplaying(int)" (?isplaying@MGEsound@@QAE_NH@Z) referenced in function "private: void __thiscall BoNgame::load_menu(void)" (?load_menu@BoNgame@@AAEXXZ)
BoN_game.obj : error LNK2019: unresolved external symbol "public: void __thiscall MGEsound::stop(int)" (?stop@MGEsound@@QAEXH@Z) referenced in function "private: void __thiscall BoNgame::load_menu(void)" (?load_menu@BoNgame@@AAEXXZ)
BoN_mouseinputlogic.obj : error LNK2001: unresolved external symbol "public: void __thiscall MGEsound::stop(int)" (?stop@MGEsound@@QAEXH@Z)
BoN_game.obj : error LNK2019: unresolved external symbol "public: void __thiscall MGEsound::setsfxvolume(void)" (?setsfxvolume@MGEsound@@QAEXXZ) referenced in function "public: __thiscall BoNgame::BoNgame(void)" (??0BoNgame@@QAE@XZ)
BoN_mouseinputlogic.obj : error LNK2001: unresolved external symbol "public: void __thiscall MGEsound::setsfxvolume(void)" (?setsfxvolume@MGEsound@@QAEXXZ)
BoN_game.obj : error LNK2019: unresolved external symbol "public: void __thiscall MGEsound::setmusicvolume(void)" (?setmusicvolume@MGEsound@@QAEXXZ) referenced in function "public: __thiscall BoNgame::BoNgame(void)" (??0BoNgame@@QAE@XZ)
BoN_mouseinputlogic.obj : error LNK2001: unresolved external symbol "public: void __thiscall MGEsound::setmusicvolume(void)" (?setmusicvolume@MGEsound@@QAEXXZ)
BoN_game.obj : error LNK2019: unresolved external symbol "public: void __thiscall MGEsound::openogg(char *,class MGElog *)" (?openogg@MGEsound@@QAEXPADPAVMGElog@@@Z) referenced in function "public: __thiscall BoNgame::BoNgame(void)" (??0BoNgame@@QAE@XZ)
BoN_game.obj : error LNK2019: unresolved external symbol "public: __thiscall BoNupdateunit::BoNupdateunit(void)" (??0BoNupdateunit@@QAE@XZ) referenced in function "public: __thiscall BoNgame::BoNgame(void)" (??0BoNgame@@QAE@XZ)
BoN_game.obj : error LNK2019: unresolved external symbol "public: __thiscall MGEinterface::MGEinterface(void)" (??0MGEinterface@@QAE@XZ) referenced in function "public: __thiscall BoNgame::BoNgame(void)" (??0BoNgame@@QAE@XZ)
BoN_game.obj : error LNK2019: unresolved external symbol "public: __thiscall MGEsound::MGEsound(class MGElog *)" (??0MGEsound@@QAE@PAVMGElog@@@Z) referenced in function "public: __thiscall BoNgame::BoNgame(void)" (??0BoNgame@@QAE@XZ)
BoN_game.obj : error LNK2019: unresolved external symbol "public: __thiscall MGEinterface::~MGEinterface(void)" (??1MGEinterface@@QAE@XZ) referenced in function "public: void * __thiscall MGEinterface::`scalar deleting destructor'(unsigned int)" (??_GMGEinterface@@QAEPAXI@Z)
BoN_game.obj : error LNK2019: unresolved external symbol "public: __thiscall MGEsound::~MGEsound(void)" (??1MGEsound@@QAE@XZ) referenced in function "public: void * __thiscall MGEsound::`scalar deleting destructor'(unsigned int)" (??_GMGEsound@@QAEPAXI@Z)
BoN_game.obj : error LNK2019: unresolved external symbol "public: __thiscall BoNupdateunit::~BoNupdateunit(void)" (??1BoNupdateunit@@QAE@XZ) referenced in function "public: void * __thiscall BoNupdateunit::`scalar deleting destructor'(unsigned int)" (??_GBoNupdateunit@@QAEPAXI@Z)
BoN_game.obj : error LNK2019: unresolved external symbol "public: bool __thiscall MGEinterface::check_mousezonehit(class MGEinput *)" (?check_mousezonehit@MGEinterface@@QAE_NPAVMGEinput@@@Z) referenced in function "public: void __thiscall BoNgame::update_game(void)" (?update_game@BoNgame@@QAEXXZ)
BoN_loadmenus.obj : error LNK2019: unresolved external symbol "public: void __thiscall MGEinterface::init_mousezones(unsigned int)" (?init_mousezones@MGEinterface@@QAEXI@Z) referenced in function "private: void __thiscall BoNgame::load_mainmenu(void)" (?load_mainmenu@BoNgame@@AAEXXZ)
Debug/BoN.exe : fatal error LNK1120: 18 unresolved externals

[Edited by - Tertsi on November 11, 2004 1:48:21 PM]

Share this post


Link to post
Share on other sites
I hope its not the same lib includes. If it is then that may be your problem. You need to link with a debug version of yoru library for debug and a release version for release.

Try rebuilding the library containg the missing methods under debug and the relink your project.

Cheers
Chris

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this