EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Debian Lenny32 make problem (https://www.eqemulator.org/forums/showthread.php?t=31383)

jrdnyquist 05-27-2010 04:12 PM

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?

Derision 05-27-2010 04:17 PM

Try adding:
Code:

#include <stdlib.h>
to the top of world/Adventure.cpp

Older versions of g++ would just let this pass without an error.

jrdnyquist 05-27-2010 05:18 PM

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.