.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > YaPB
YaPB Yet another POD-Bot flavor by Whistler and Jeefo Counter-Strike

Reply
 
Thread Tools
Yapb 2 compile error
Old
  (#1)
alan4ick
Member
 
Status: Offline
Posts: 5
Join Date: Jan 2006
Default Yapb 2 compile error - 26-06-2006

I,m try to compile 2.05 under Redhat 2.1 and got error :

yapb.cpp: In function `void CBotManager::CallGameEntity (entvars_t *)':
yapb.cpp:46: ISO C++ forbids casting between pointer-to-function and
pointer-to-object

Last edited by alan4ick; 26-06-2006 at 11:27..
  
Reply With Quote
Re: Yapb 2 compile error
Old
  (#2)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 452
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: Yapb 2 compile error - 26-06-2006

As i say, i'm not a linux user and do dev under MSVC!

Change:
Code:
pfnPlayer = reinterpret_cast <ENTITY_FN> (GetProcSymbol (g_hGameLib, "player"));
to
Code:
pfnPlayer = (ENTITY_FN) GetProcSymbol (g_hGameLib, "player");
  
Reply With Quote
Re: Yapb 2 compile error
Old
  (#3)
alan4ick
Member
 
Status: Offline
Posts: 5
Join Date: Jan 2006
Default Re: Yapb 2 compile error - 27-06-2006

Whistler, is possible to make yapb 2.0 compatible with linux ?
  
Reply With Quote
Re: Yapb 2 compile error
Old
  (#4)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 452
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: Yapb 2 compile error - 27-06-2006

i can compiler a linux binary but i'm not promise that it's will work correctly.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com