MMDVMHost icon indicating copy to clipboard operation
MMDVMHost copied to clipboard

Compile errors in VS 2019 - unresolved external symbol

Open iball opened this issue 4 years ago • 1 comments

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: class std::basic_string<char,struct std::char_traits,class std::allocator > const __cdecl CUserDBentry::get(class std::basic_string<char,struct std::char_traits,class std::allocator >)const " (?get@CUserDBentry@@QEBA?BV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V23@@Z) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\Display.obj 1

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: void __cdecl CUserDBentry::clear(void)" (?clear@CUserDBentry@@QEAAXXZ) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\DMRLookup.obj 1

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: void __cdecl CUserDBentry::set(class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::basic_string<char,struct std::char_traits,class std::allocator >)" (?set@CUserDBentry@@QEAAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\DMRLookup.obj 1

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: __cdecl CUserDBentry::~CUserDBentry(void)" (??1CUserDBentry@@QEAA@XZ) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\DMRLookup.obj 1

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: __cdecl CUserDBentry::CUserDBentry(void)" (??0CUserDBentry@@QEAA@XZ) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\DMRLookup.obj 1

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: bool __cdecl CUserDB::load(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?load@CUserDB@@QEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\DMRLookup.obj 1

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: bool __cdecl CUserDB::lookup(unsigned int,class CUserDBentry *)" (?lookup@CUserDB@@QEAA_NIPEAVCUserDBentry@@@Z) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\DMRLookup.obj 1

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: __cdecl CUserDB::~CUserDB(void)" (??1CUserDB@@QEAA@XZ) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\DMRLookup.obj 1

Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "public: __cdecl CUserDB::CUserDB(void)" (??0CUserDB@@QEAA@XZ) MMDVMHost C:\Users\iball\Source\Repos\MMDVMHOST2\DMRLookup.obj 1

And a "identifier "gitversion" is undefined" error as well.

iball avatar Apr 25 '20 00:04 iball

It appears that your build environment is misconfigured. Make sure your linker is set up correctly to look in the folder where you compile source code. This is not an issue with the code as much as learning how to correctly compile code on Windows. Good luck.

randybuildsthings avatar Mar 05 '21 15:03 randybuildsthings