IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> bot.h(110) : error C2259: 'CRCBotPlugin' : cannot instantiate abstract class
navid
post Jul 14 2008, 11:02 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 14-July 08
Member No.: 1,377



I'm trying to compile the RCBot 2 source code in Visual C++ 2008 Express Edition,
but I got many compile errors!!!

here is one:

c:\sourcesdk\src\utils\hpb_bot2\bot.h(110) : error C2259: 'CRCBotPlugin' : cannot instantiate abstract class
1> due to following members:
1> 'PLUGIN_RESULT IServerPluginCallbacks::ClientCommand(edict_t *,const CCommand &)' : is abstract
1> c:\sourceSDK\src\public\engine/iserverplugin.h(104) : see declaration of 'IServerPluginCallbacks::ClientCommand'
1> 'void IServerPluginCallbacks::OnQueryCvarValueFinished(QueryCvarCookie_t,edict_t *,EQueryCvarValueStatus,const char *,const char *)' : is abstract
1> c:\sourceSDK\src\public\engine/iserverplugin.h(112) : see declaration of 'IServerPluginCallbacks::OnQueryCvarValueFinished'

I tried to find any answer on google but I didn't find anything, I'm wandering how come no one has gotten this error since it is a compile error and any one trying to compile the source code should get the error!

I'd really appreciate your help.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jul 15 2008, 12:36 PM
Post #2


Admin
*****

Group: Admin
Posts: 3,056
Joined: 11-September 03
From: uk
Member No.: 1



you're trying to compile to non orange box RCBOT 2 code with the orange box SDK, Instead extract the non orange box SDK source code...

or if you want to compile for the orange box use this source code instead:
http://rcbot.dwmh.net/RCBot2_OrangeBox_VS05.rar

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
navid
post Jul 15 2008, 07:20 PM
Post #3


Newbie
*

Group: Members
Posts: 2
Joined: 14-July 08
Member No.: 1,377



Great, now it works!
Thanks Cheeseh

QUOTE(Cheeseh @ Jul 15 2008, 12:36 PM) *

you're trying to compile to non orange box RCBOT 2 code with the orange box SDK, Instead extract the non orange box SDK source code...


For this one I had to delete mathlib.cpp, declare i in two places, and add void here:
class CWeapons
{
public:
static void addWeapon ( CWeapon *pWeapon );
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 05:09 PM