0.5.0 Compiling Issues
[tyrbo@elite world]$ make
mkdir -p .obj
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -I/usr/include/mysql -I/usr/mysql/include -c ../common/Item.cpp -o .obj/Item.o
../common/Item.cpp: In member function `void
ItemContainerInst::PutItem(unsigned char, const ItemInst&)':
../common/Item.cpp:325: warning: comparison is always false due to limited
range of data type
../common/Item.cpp: In member function `virtual std::string
ItemInst::Serialize(short int) const':
../common/Item.cpp:784: error: integer constant is too large for "long" type
../common/Item.cpp:784: warning: comparison is always true due to limited range
of data type
make: *** [.obj/Item.o] Error 1
[tyrbo@elite world]$
Any suggestions?
|