Version 0.5.0 Compile troubles
Hi All. Trying to compile .5 and am having some troubles. Sharemem and World compile fine. Did a make clean and compiled Sharemem then world and then zone. These are the complaints the compiler and linker gave me. FYI, using GCC 3.2.2 - Thanks in advance for looking at this.
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE -DDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -I/usr/local/mysql/include zone.cpp -o zone.o In file included from zone.h:26, from zone.cpp:38: ../common/database.h:28:19: mysql.h: No such file or directory In file included from ../common/database.h:30, from zone.h:26, from zone.cpp:38: ../common/dbcore.h:8:19: mysql.h: No such file or directory In file included from ../common/database.h:30, from zone.h:26, from zone.cpp:38: ../common/dbcore.h:24: type specifier omitted for parameter `MYSQL_RES' ../common/dbcore.h:24: parse error before `*' token ../common/dbcore.h:32: 'MYSQL' is used as a type, but is not defined as a type. ../common/dbcore.h:178: type specifier omitted for parameter `MYSQL_RES' ../common/dbcore.h:178: parse error before `*' token ../common/dbcore.h:199: syntax error before `*' token In file included from zone.h:26, from zone.cpp:38: ../common/database.h:221: `MYSQL_RES' was not declared in this scope ../common/database.h:221: `result' was not declared in this scope ../common/database.h:221: parse error before `*' token ../common/database.h:223: `MYSQL_RES' was not declared in this scope ../common/database.h:223: `result' was not declared in this scope ../common/database.h:223: parse error before `*' token ../common/database.h:264: `MYSQL_RES' was not declared in this scope ../common/database.h:264: `result' was not declared in this scope ../common/database.h:264: invalid data member initialization ../common/database.h:264: (use `=' to initialize static data members) ../common/database.h:305: `MYSQL_RES' was not declared in this scope ../common/database.h:305: `result' was not declared in this scope ../common/database.h:305: parse error before `*' token zone.cpp:70: type specifier omitted for parameter `MYSQL_RES' zone.cpp:70: parse error before `*' token zone.cpp: In static member function `static bool Zone::Bootup(unsigned int, bool)': zone.cpp:103: `MYSQL_ERRMSG_SIZE' undeclared (first use this function) zone.cpp:103: (Each undeclared identifier is reported only once for each function it appears in.) zone.cpp:100: warning: unused variable `PlayerProfile_Struct*pp' zone.cpp:101: warning: unused variable `int char_num' zone.cpp:102: warning: unused variable `long unsigned int*lengths' zone.cpp: In member function `void Zone::LoadZoneDoors(const char*)': zone.cpp:219: warning: comparison is always false due to limited range of data type zone.cpp: In member function `bool Database::LoadStaticZonePoints(LinkedList<ZoneP oint*>*, const char*)': zone.cpp:739: `MYSQL_RES' undeclared (first use this function) zone.cpp:739: `result' undeclared (first use this function) zone.cpp:740: `MYSQL_ROW' undeclared (first use this function) zone.cpp:740: parse error before `;' token zone.cpp:743: `errbuf' undeclared (first use this function) zone.cpp:746: `row' undeclared (first use this function) zone.cpp:746: `mysql_fetch_row' undeclared (first use this function) zone.cpp:764: `mysql_free_result' undeclared (first use this function) zone.cpp: In member function `bool Database::PopulateZoneLists(const char*, LinkedList<ZonePoint*>*, SpawnGroupList*)': zone.cpp:781: parse error before `;' token zone.cpp: In member function `bool Database::PopulateZoneSpawnList(const char*, LinkedList<Spawn2*>&, unsigned int)': zone.cpp:831: parse error before `;' token zone.cpp: In member function `sint8 Database::LoadZoneState(const char*, LinkedList<Spawn2*>&)': zone.cpp:1012: parse error before `;' token zone.cpp:1030: `mysql_num_rows' undeclared (first use this function) zone.cpp:1034: `mysql_fetch_lengths' undeclared (first use this function) zone.cpp: At global scope: zone.cpp:1189: type specifier omitted for parameter `MYSQL_RES' zone.cpp:1189: parse error before `*' token zone.cpp: In function `void CleanupLoadZoneState(...)': zone.cpp:1190: `spawn2_dump' undeclared (first use this function) zone.cpp:1191: `spawn2_loaded' undeclared (first use this function) zone.cpp:1192: `gmspawntype_dump' undeclared (first use this function) zone.cpp:1193: `npc_dump' undeclared (first use this function) zone.cpp:1194: `npc_loaded' undeclared (first use this function) zone.cpp:1195: `npcloot_dump' undeclared (first use this function) zone.cpp: In member function `Spawn2* Database::LoadSpawn2(LinkedList<Spawn2*>&, unsigned int, unsigned int)': zone.cpp:1206: parse error before `;' token zone.cpp: In member function `bool Database::GetDecayTimes(npcDecayTimes_Struct*)': zone.cpp:1284: parse error before `;' token zone.cpp: In member function `bool Database::LoadZonePoints(const char*, uint8**, int32*)': zone.cpp:1377: parse error before `;' token zone.cpp:1454:2: warning: no newline at end of file make: *** [zone.o] Error 1 [root@zone1 zone]# Krusher |
NEVERMIND
DUH, forgot to change the mysql include dir. Sorry.
|
All times are GMT -4. The time now is 11:16 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.