PDA

View Full Version : Compile Question


WildcardX
11-07-2004, 02:11 PM
Greetings, I have downloaded Latest-EQEmulator-Source.zip just tonight and went into the world directory and typed "make" and despite a couple warnings, I did get the world binary made. But then I changed to ../zone and did make but got the following output and no binary. Anyone have any tips for me?

gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wno-deprecated -Wcomment -Wcast-align -O2 -ggdb -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE -DEQDEBUG=5 -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS `mysql_config --cflags` entity.cpp -o entity.o
entity.cpp: In member function `bool
EntityList::MakeDoorSpawnPacket(APPLAYER*)':
entity.cpp:568: `qty' undeclared (first use this function)
entity.cpp:568: (Each undeclared identifier is reported only once for each
function it appears in.)
entity.cpp: In member function `void EntityList::SendZoneSpawnsBulk(Client*)':
entity.cpp:863: warning: unused variable `int i'
make: *** [entity.o] Error 1

I am using RedHat 9 with gcc version 3.2.2 if anyone cares.

WildcardX
11-07-2004, 02:13 PM
Just so I dont sound like a complete dumbass, the compile is stopping because of a undeclared variable in entity.cpp, right?

residentninja
12-21-2004, 06:57 AM
I have had similar problems. Try:

make clean
make

It fixed mine. This comes up when I have tried to compile and errored out and forget to do a make clean before trying again.

Muuss
12-21-2004, 08:11 PM
Unless you don't want to enable perl quests, don't compile with make alone, use the following command instead :
make -f makefile.perl