dbcore.cpp error
I'm trying to compile 1119 under debian linux, but i'm getting this error =(
[CODE]-o ../common/dbcore.o ../common/dbcore.cpp: In static member function |
wierd cut and paste error on my part i guess >.>
../common/dbcore.cpp: In static member function ‘static bool DBcore::ReadDBINI(char*, char*, char*, char*, int32&, bool&, bool*)’: ../common/dbcore.cpp:112: error: ‘atoi’ was not declared in this scope make[1]: *** [../common/dbcore.o] Error 1 make[1]: Leaving directory `/home/equsr/EQemu/source/EQEmu-0.7.0-1119/world' make: *** [all] Error 2 |
Did you edit your source code before you started to compile? There are multiple changes that you have to make for it to compile. Though, I have never seen that particular error.
|
I assume you're using GCC 4.3. If so, there's some information about this on the GCC website that I found through this forum using this Google search:
Quote:
Code:
1 #include "../common/debug.h" Code:
#include "../common/debug.h" |
Well, the wiki should be pretty up-to-date for getting everything to compile correctly without having to change anything that isn't in the wiki. I know people have done it as recently as this week and it worked fine. Unless there was some change since then that would cause this, I imagine you missed something in there.
|
yea acually i'm using gcc 4.2 i'll try this here in a few. Guess i shoulda installed etch instead of lenny >.>
|
after applying your fix to about a dozen files Oo, now i'm getting this error.
client.h:141: warning: ‘typedef’ was ignored in this declaration zone.cpp: In member function ‘bool Zone::LoadZoneObjects()’: zone.cpp:184: warning: missing braces around initializer for ‘uint32 [2]’ make[1]: *** [zone.o] Error 1 make[1]: Leaving directory `/home/jenco/EQemu/source/EQEmu-0.7.0-1119/zone' make: *** [all] Error 2 |
i got around that error by passing a fpermissive flag to zone's makefile (i know i should'nt do that to make things compile =( ) but it just looks like eqemu just need to be updated to gcc's new specs is all.
|
All times are GMT -4. The time now is 08:36 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.