I'm trying to compile my administration plugin under MSVC7, but when linking while building the Release build, it blows up with this:
Code:
KeyValues.obj : error LNK2019: unresolved external symbol __imp__DevMsg referenced in function "public: void __thiscall CKeyValuesErrorStack::ReportError(char const *)" (?ReportError@CKeyValuesErrorStack@@QAEXPBD@Z)
KeyValues.obj : error LNK2019: unresolved external symbol __imp__MemFreeScratch referenced in function "public: bool __thiscall KeyValues::LoadFromFile(class IBaseFileSystem *,char const *,char const *)" (?LoadFromFile@KeyValues@@QAE_NPAVIBaseFileSystem@@PBD1@Z)
KeyValues.obj : error LNK2019: unresolved external symbol __imp__MemAllocScratch referenced in function "public: bool __thiscall KeyValues::LoadFromFile(class IBaseFileSystem *,char const *,char const *)" (?LoadFromFile@KeyValues@@QAE_NPAVIBaseFileSystem@@PBD1@Z)
KeyValues.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl DevMsg(char const *,...)" (__imp_?DevMsg@@YAXPBDZZ) referenced in function "private: void __thiscall KeyValues::ParseIncludedKeys(char const *,char const *,class IBaseFileSystem *,char const *,class CUtlVector > &)" (?ParseIncludedKeys@KeyValues@@AAEXPBD0PAVIBaseFileSystem@@0AAV?$CUtlVector@PAVKeyValues@@V?$CUtlMemory@PAVKeyValues@@@@@@@Z)
mathlib.obj : error LNK2019: unresolved external symbol __imp__GetCPUInformation referenced in function "void __cdecl MathLib_Init(float,float,float,int,bool,bool,bool,bool)" (?MathLib_Init@@YAXMMMH_N000@Z)
And with Debug, it's even worse:
Code:
cvars.obj : error LNK2019: unresolved external symbol __imp___Q_strcmp referenced in function "void __cdecl g_VersionCallback(class ConVar *,char const *)" (?g_VersionCallback@@YAXPAVConVar@@PBD@Z)
CServerPluginAdmin.obj : error LNK2001: unresolved external symbol __imp___Q_strcmp
CAdminTools.obj : error LNK2001: unresolved external symbol __imp___Q_strcmp
cvars.obj : error LNK2019: unresolved external symbol __imp__Q_atoi referenced in function "bool __cdecl Q_atob(char const *,bool &)" (?Q_atob@@YA_NPBDAA_N@Z)
CAdminTools.obj : error LNK2001: unresolved external symbol __imp__Q_atoi
cvars.obj : error LNK2019: unresolved external symbol __imp__Q_strnicmp referenced in function "bool __cdecl Q_atob(char const *,bool &)" (?Q_atob@@YA_NPBDAA_N@Z)
CAdminTools.obj : error LNK2001: unresolved external symbol __imp__Q_strnicmp
cvars.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) char const * __cdecl Q_stristr(char const *,char const *)" (__imp_?Q_stristr@@YAPBDPBD0@Z) referenced in function "void __cdecl admin_exec(void)" (?admin_exec@@YAXXZ)
CAdminTools.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl Q_stristr(char const *,char const *)" (__imp_?Q_stristr@@YAPBDPBD0@Z)
cvars.obj : error LNK2019: unresolved external symbol __imp___Q_strlen referenced in function "void __cdecl admin_exec(void)" (?admin_exec@@YAXXZ)
convar.obj : error LNK2001: unresolved external symbol __imp___Q_strlen
KeyValues.obj : error LNK2001: unresolved external symbol __imp___Q_strlen
CAdminTools.obj : error LNK2001: unresolved external symbol __imp___Q_strlen
cvars.obj : error LNK2019: unresolved external symbol __imp__Q_atof referenced in function "void __cdecl admin_teleport(void)" (?admin_teleport@@YAXXZ)
CServerPluginAdmin.obj : error LNK2019: unresolved external symbol __imp___Q_stricmp referenced in function "class ConCommand * __cdecl CServerPluginAdmin_FindCommand(char const *)" (?CServerPluginAdmin_FindCommand@@YAPAVConCommand@@PBD@Z)
KeyValues.obj : error LNK2001: unresolved external symbol __imp___Q_stricmp
CAdminTools.obj : error LNK2001: unresolved external symbol __imp___Q_stricmp
CServerPluginAdmin.obj : error LNK2019: unresolved external symbol __imp__Q_snprintf referenced in function "public: virtual bool __thiscall CServerPluginAdmin::Load(int,class ISmmAPI *,char *,unsigned int,bool)" (?Load@CServerPluginAdmin@@UAE_NHPAVISmmAPI@@PADI_N@Z)
convar.obj : error LNK2001: unresolved external symbol __imp__Q_snprintf
KeyValues.obj : error LNK2001: unresolved external symbol __imp__Q_snprintf
CAdminTools.obj : error LNK2019: unresolved external symbol __imp__Q_snprintf referenced in function "public: virtual bool __thiscall CAdminTools::url(class CUtlVector > *,char const *,char const *,bool)const " (?url@CAdminTools@@UBE_NPAV?$CUtlVector@PAUedict_t@@V?$CUtlMemory@PAUedict_t@@@@@@PBD1_N@Z)
CServerPluginAdmin.obj : error LNK2019: unresolved external symbol __imp___Q_strcpy referenced in function "public: virtual bool __thiscall CServerPluginAdmin::Load(int,class ISmmAPI *,char *,unsigned int,bool)" (?Load@CServerPluginAdmin@@UAE_NHPAVISmmAPI@@PADI_N@Z)
convar.obj : error LNK2019: unresolved external symbol __imp__Q_strcasecmp referenced in function "public: static void __cdecl ConCommandBase::RevertFlaggedCvars(int)" (?RevertFlaggedCvars@ConCommandBase@@SAXH@Z)
convar.obj : error LNK2019: unresolved external symbol __imp__Q_strncpy referenced in function "protected: char * __thiscall ConCommandBase::CopyString(char const *)" (?CopyString@ConCommandBase@@IAEPADPBD@Z)
KeyValues.obj : error LNK2019: unresolved external symbol __imp__Q_strncpy referenced in function "public: bool __thiscall KeyValues::LoadFromFile(class IBaseFileSystem *,char const *,char const *)" (?LoadFromFile@KeyValues@@QAE_NPAVIBaseFileSystem@@PBD1@Z)
CAdminTools.obj : error LNK2019: unresolved external symbol __imp__Q_strncpy referenced in function "public: virtual bool __thiscall CAdminTools::kick(struct edict_t *,char const *)const " (?kick@CAdminTools@@UBE_NPAUedict_t@@PBD@Z)
KeyValues.obj : error LNK2019: unresolved external symbol __imp__KeyValuesSystem referenced in function "public: char const * __thiscall KeyValues::GetName(void)const " (?GetName@KeyValues@@QBEPBDXZ)
KeyValues.obj : error LNK2019: unresolved external symbol __imp___Q_memcpy referenced in function "public: class KeyValues * __thiscall KeyValues::FindKey(char const *,bool)" (?FindKey@KeyValues@@QAEPAV1@PBD_N@Z)
KeyValues.obj : error LNK2019: unresolved external symbol __imp__Q_strncat referenced in function "private: void __thiscall KeyValues::ParseIncludedKeys(char const *,char const *,class IBaseFileSystem *,char const *,class CUtlVector > &)" (?ParseIncludedKeys@KeyValues@@AAEXPBD0PAVIBaseFileSystem@@0AAV?$CUtlVector@PAVKeyValues@@V?$CUtlMemory@PAVKeyValues@@@@@@@Z)
KeyValues.obj : error LNK2019: unresolved external symbol __imp___Q_memmove referenced in function "protected: void __thiscall CUtlVector >::ShiftElementsRight(int,int)" (?ShiftElementsRight@?$CUtlVector@PAVKeyValues@@V?$CUtlMemory@PAVKeyValues@@@@@@IAEXHH@Z)
CAdminTools.obj : error LNK2001: unresolved external symbol __imp___Q_memmove
utlbuffer.obj : error LNK2019: unresolved external symbol __imp__Q_vsnprintf referenced in function "public: void __thiscall CUtlBuffer::VaPrintf(char const *,char *)" (?VaPrintf@CUtlBuffer@@QAEXPBDPAD@Z)
CAdminTools.obj : error LNK2019: unresolved external symbol __imp__Q_strncmp referenced in function "public: virtual bool __thiscall CAdminTools::findPlayers(class CUtlVector > *,char const *,bool)const " (?findPlayers@CAdminTools@@UBE_NPAV?$CUtlVector@PAUedict_t@@V?$CUtlMemory@PAUedict_t@@@@@@PBD_N@Z)
CAdminTools.obj : error LNK2019: unresolved external symbol __imp__RandomFloat referenced in function "public: virtual bool __thiscall CAdminTools::slap(struct edict_t *,int)const " (?slap@CAdminTools@@UBE_NPAUedict_t@@H@Z)
What am I doing wrong? Those all seem to be part of tier0/vstdlib, which is in my library path, and it didn't even get this far without them in the path, so I don't think that's the problem.