Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Linux Servers

Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2003, 11:58 AM
tyrbo
Fire Beetle
 
Join Date: Jun 2003
Posts: 12
Default 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?
Reply With Quote
  #2  
Old 11-03-2003, 12:51 PM
flyrken's Avatar
flyrken
Sarnak
 
Join Date: Oct 2003
Posts: 81
Default

Hrmm...
What distro are you running? Did you update the code to CVS DR5?
Any idea about your compiler version? I will try to "replicate" on my SuSE distro I just bought


EOF
Reply With Quote
  #3  
Old 11-04-2003, 12:39 AM
Doodman's Avatar
Doodman
Developer
 
Join Date: Aug 2003
Posts: 246
Default

You must be on GCC 3.3.

The constant that it is complaining about is 0xFFFFFFFFCCCCCCCC which is obviously too large for a 32-bit int.

One of the windows developers was having a crash problem when a variable (according to vs.net) was that value. Which is not possible. We're looking in to how to make both side happy. Until then try setting it to 0xCCCCCCCC as I think that is how GCC < 3.3 is truncating it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:37 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3