PDA

View Full Version : Compiling errors Cant figure them out.


VeoMorphine
04-01-2003, 02:10 PM
In the zone make i get this
mob.cpp: In method `void Mob::FillSpawnStruct (NewSpawn_Struct *, Mob
*)':
mob.cpp:491: warning: assignment to `sint16' from `float'
mob.cpp:491: warning: argument to `short int' from `float'
mob.cpp: In method `void Mob::CreateHPPacket (APPLAYER *)':
mob.cpp:595: warning: assignment to `sint32' from `float'
mob.cpp:595: warning: argument to `int' from `float'
mob.cpp: In function `int32 Mob::RandomTimer (int, int)':
mob.cpp:1937: `rand' undeclared (first use this function)
mob.cpp:1937: (Each undeclared identifier is reported only once for
each function it appears in.)
make: *** [mob.o] Error 1
bash-2.05a$



In the world make i get this:
../common/dbcore.cpp: In method `bool DBcore::RunQuery (const char *,
unsigned int, char *, MYSQL_RES **, int32 *, int32 *, int32 *, bool)':
../common/dbcore.cpp:121: `strcpy' undeclared (first use this function)
../common/dbcore.cpp:121: (Each undeclared identifier is reported only
once for each function it appears in.)
../common/dbcore.cpp: In method `bool DBcore::Open (const char *, const
char *, const char *, const char *, char *, bool, bool)':
../common/dbcore.cpp:156: `strlen' undeclared (first use this function)
make: *** [../common/dbcore.o] Error 1
bash-2.05a$





I cant figure out why this is happening.

Bigpull
04-01-2003, 04:14 PM
echo '\#include <stdlib.h>' >> common/unix.h
echo '\#include <string.h>' >> common/unix.h

VeoMorphine
04-02-2003, 04:26 AM
Where would i put this line or do i just echo that at bash?

VeoMorphine
04-02-2003, 10:12 AM
Ok, I just Upgraded gcc to 3.2 now. And when i did make in zone and world it went fine so that is no longer a problem.

It says in the readme that i need to setup some ini files. How do i do that? I cant find the ini files..

Trumpcard
04-02-2003, 01:20 PM
download the win32 zip and use the ones in there.

VeoMorphine
04-03-2003, 12:09 AM
Thanks.