what does this error mean?
-
Hi all, This only happens on the release version of my project and it does not happen on the debug version. Also I have the same additional dependencies.
SiteCode.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl hash(char *)" (?hash@@YAIPAD@Z) referenced in function "public: int __thiscall CSiteCode::ReportNICInfoMP(int,class CDeviceLocationInformationList &,class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,char *)" (?ReportNICInfoMP@CSiteCode@@QAEHHAAVCDeviceLocationInformationList@@AAV?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@PAD@Z)
1>SiteCode.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl calc_hashnr_new(char const *,unsigned int)" (?calc_hashnr_new@@YAIPBDI@Z) referenced in function "public: int __thiscall CSiteCode::ReportNICInfoMP(int,class CDeviceLocationInformationList &,class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,char *)" (?ReportNICInfoMP@CSiteCode@@QAEHHAAVCDeviceLocationInformationList@@AAV?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@PAD@Z)
1>SiteCode.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl calc_hashnr(char const *,unsigned int)" (?calc_hashnr@@YAIPBDI@Z) referenced in function "public: int __thiscall CSiteCode::ReportNICInfoMP(int,class CDeviceLocationInformationList &,class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,char *)" (?ReportNICInfoMP@CSiteCode@@QAEHHAAVCDeviceLocationInformationList@@AAV?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@PAD@Z)
1>SiteCode.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl hashpjw(char *,unsigned int)" (?hashpjw@@YAKPADI@Z) referenced in function "public: int __thiscall CSiteCode::ReportNICInfoMP(int,class CDeviceLocationInformationList &,class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,char *)" (?ReportNICInfoMP@CSiteCode@@QAEHHAAVCDeviceLocationInformationList@@AAV?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@PAD@Z)
1>SiteCode.obj : error LNK2019: unresolved external symbol "void __cdecl Add2ByteChecksum(unsigned char *)" (?Add2ByteChecksum@@YAXPAE@Z) referenced in function "public: class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT& -
Hi all, This only happens on the release version of my project and it does not happen on the debug version. Also I have the same additional dependencies.
SiteCode.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl hash(char *)" (?hash@@YAIPAD@Z) referenced in function "public: int __thiscall CSiteCode::ReportNICInfoMP(int,class CDeviceLocationInformationList &,class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,char *)" (?ReportNICInfoMP@CSiteCode@@QAEHHAAVCDeviceLocationInformationList@@AAV?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@PAD@Z)
1>SiteCode.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl calc_hashnr_new(char const *,unsigned int)" (?calc_hashnr_new@@YAIPBDI@Z) referenced in function "public: int __thiscall CSiteCode::ReportNICInfoMP(int,class CDeviceLocationInformationList &,class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,char *)" (?ReportNICInfoMP@CSiteCode@@QAEHHAAVCDeviceLocationInformationList@@AAV?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@PAD@Z)
1>SiteCode.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl calc_hashnr(char const *,unsigned int)" (?calc_hashnr@@YAIPBDI@Z) referenced in function "public: int __thiscall CSiteCode::ReportNICInfoMP(int,class CDeviceLocationInformationList &,class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,char *)" (?ReportNICInfoMP@CSiteCode@@QAEHHAAVCDeviceLocationInformationList@@AAV?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@PAD@Z)
1>SiteCode.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl hashpjw(char *,unsigned int)" (?hashpjw@@YAKPADI@Z) referenced in function "public: int __thiscall CSiteCode::ReportNICInfoMP(int,class CDeviceLocationInformationList &,class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,char *)" (?ReportNICInfoMP@CSiteCode@@QAEHHAAVCDeviceLocationInformationList@@AAV?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@PAD@Z)
1>SiteCode.obj : error LNK2019: unresolved external symbol "void __cdecl Add2ByteChecksum(unsigned char *)" (?Add2ByteChecksum@@YAXPAE@Z) referenced in function "public: class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT&monsieur_jj wrote:
Also I have the same additional dependencies.
Did you forget to add them in the release settings ? Remember that you have to add them both for the debug version and the release version.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++