Add tier0.lib, tier1.lib, vstdlib.lib, and mathlib.lib to the list of
dependencies for the project. If there are still more errors after adding
those, try tier2 and tier3.

The errors about the bot functions are probably because you did not include
serverplugin_bot.cpp into your project. Either remove the references to the
functions, or add this cpp file to your list of source files.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lewis
Sent: Monday, February 25, 2008 2:35 PM
To: [email protected]
Subject: [hlcoders] Compiling serverplugin_empty under the TF2 SDK

This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Hi all. I'm hoping one of you can help me out here.



I've been playing with the SDK for episodic1 for a while, but finally
decided to write a plugin for TF2.



However when I use the TF2 SDK and use the sample serverplugin_empty project
to start it off. It doesn't compile. After sneaking around the files a bit I
noticed iCommandLine.h and strtools.h were moved (tier0 and tier1
respectively). So I updated the projected as needed however it's still not
compiling.



I say compiling, what I mean is it's not linking. Here's the output:

1>serverplugin_empty.obj : error LNK2019: unresolved external symbol "void
__cdecl ConVar_Register(int,class IConCommandBaseAccessor *)"
(?ConVar_Register@@YAXHPAVIConCommandBaseAccessor@@@Z) referenced in
function "public: virtual bool __thiscall CEmptyServerPlugin::Load(void *
(__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *))"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z)

1>serverplugin_empty.obj : error LNK2019: unresolved external symbol "void
__cdecl ConnectTier1Libraries(void * (__cdecl**)(char const *,int *),int)"
(?ConnectTier1Libraries@@[EMAIL PROTECTED]@Z) referenced in function
"public: virtual bool __thiscall CEmptyServerPlugin::Load(void *
(__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *))"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z)

1>serverplugin_empty.obj : error LNK2019: unresolved external symbol "void
__cdecl DisconnectTier1Libraries(void)" (?DisconnectTier1Libraries@@YAXXZ)
referenced in function "public: virtual void __thiscall
CEmptyServerPlugin::Unload(void)" ([EMAIL PROTECTED]@@UAEXXZ)

1>serverplugin_empty.obj : error LNK2019: unresolved external symbol "void
__cdecl ConVar_Unregister(void)" (?ConVar_Unregister@@YAXXZ) referenced in
function "public: virtual void __thiscall CEmptyServerPlugin::Unload(void)"
([EMAIL PROTECTED]@@UAEXXZ)

1>serverplugin_empty.obj : error LNK2019: unresolved external symbol "void
__cdecl Bot_RunAll(void)" (?Bot_RunAll@@YAXXZ) referenced in function
"public: virtual void __thiscall CEmptyServerPlugin::GameFrame(bool)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED])



There's more but you get the message!



Worse case, I'll have to start from scratch. I'm just lazy and find that
having everything already defined is nice J



Cheers,

Adrian

--


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to