我收到以下链接器错误
error LNK2019: unresolved external symbol "class ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > > __cdecl myjb::GetLocalAppPath(class ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > > const &)" (?GetLocalAppPath@myjb@@YA?AV?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@ABV23@@Z) referenced in function "private: void __thiscall inmessage::init_service_thread(void)" (?init_service_thread@inmessage@@AAEXXZ)
我有以下方法
void inmessage::init_service_thread()
{
std::string appDataFName = (CT2CA) myjb::GetLocalAppPath("");
}
现在 GetLocalAppPath 是来自外部库的函数。关于可能出现问题或链接器错误原因的任何建议?