![]() |
![]() |
Venom |
![]()
Post
#1
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 82 Joined: 24-July 06 Member No.: 807 ![]() |
Hello,
I am having problems setting up the g++ compiler under linux and the g++ compiler for Windows wasnt much help either. I understand fully how to compile under Visual Studio but having little experience of Linux in general, i am not sure how to setup the compiler in order to compile the code. If someone would be so kind as to provide me with so guideance i would be very greatful. Venom |
![]() ![]() |
Venom |
![]()
Post
#2
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 82 Joined: 24-July 06 Member No.: 807 ![]() |
[root@www dlls]$ make -fmakefile_linux_mm
g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -DRCBOT_META_BUILD -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot.cpp -o bot.o bot.cpp: In function \u2018BOOL BotFunc_FillString(char*, const char*, const char*, int)\u2019: bot.cpp:2201: error: cast from \u2018char*\u2019 to \u2018int\u2019 loses precision bot.cpp:2201: error: cast from \u2018char*\u2019 to \u2018int\u2019 loses precision bot.cpp: In member function \u2018BOOL CBot::UpdateVisibles()\u2019: bot.cpp:6641: error: cast from \u2018edict_t*\u2019 to \u2018int\u2019 loses precision make: *** [bot.o] Error 1 Seems to work almost except for that one error. Any idea on how to fix it? I am hoping to help develop RCbot and provide you with code additions etc...but i need to be able to compile it correctly. If you can help, i would be very greatful. UPDATE: Also i wanted to add, based on the RCbot you compiled for me Lordskitch, there are errors produced when running it. The terminal displays the following but does seem to effect the bots that much. This line below only shows up once or twice every few minutes with a different ID. [RCBOT>] warning: GetClientRep(): No Rep for pClient (id: 3) (returning default) This one below is spammed constantly every few seconds. [RCBOT>] warning: GetClientRep(): Bad pClient recieved (NULL) (returning default) |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 15th June 2025 - 12:57 AM |