.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   YaPB (http://forums.bots-united.com/forumdisplay.php?f=55)
-   -   Yapb 2 compile error (http://forums.bots-united.com/showthread.php?t=5436)

alan4ick 26-06-2006 07:56

Yapb 2 compile error
 
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

jeefo 26-06-2006 18:18

Re: Yapb 2 compile error
 
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");

alan4ick 26-06-2006 23:56

Re: Yapb 2 compile error
 
Whistler, is possible to make yapb 2.0 compatible with linux ?

jeefo 26-06-2006 23:57

Re: Yapb 2 compile error
 
i can compiler a linux binary but i'm not promise that it's will work correctly.


All times are GMT +2. The time now is 03:00.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.