Debian Lenny32 make problem
I'm trying to compile projecteqemu revision 1505 on Debian 32-bit 5.0 (Lenny). I get the following error...
eqemu@vadmin01:~/eqemulator/projecteqemu$ make make -C EMuShareMem make[1]: Entering directory `/data/eqemu/eqemulator/projecteqemu/EMuShareMem' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/data/eqemu/eqemulator/projecteqemu/EMuShareMem' make -C world make[1]: Entering directory `/data/eqemu/eqemulator/projecteqemu/world' gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -I../common/SocketLib -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -Di386 -DAPP_OPCODE_SIZE=2 -DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN -I/usr/include/mysql -DBIG_JOINS=1 -fPIC -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE Adventure.cpp -o Adventure.o Adventure.cpp: In member function ‘void Adventure::MoveCorpsesToGraveyard()’: Adventure.cpp:381: error: ‘atoi’ was not declared in this scope make[1]: *** [Adventure.o] Error 1 make[1]: Leaving directory `/data/eqemu/eqemulator/projecteqemu/world' make: *** [all] Error 2 Any ideas? |
Try adding:
Code:
#include <stdlib.h> Older versions of g++ would just let this pass without an error. |
Cool that fixed it. I has to do the same for world/AdventureManager.cpp
Thanks! |
All times are GMT -4. The time now is 04:15 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.