EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=618)
-   -   Compile problem on linux. (https://www.eqemulator.org/forums/showthread.php?t=11237)

Gangrif 01-07-2004 01:12 PM

Compile problem on linux.
 
When trying to compile the zoneserver... i get something to the tune of this:
Code:

StringIDs.h:91:7: warning: no newline at end of file
client.cpp: In member function `bool Client::UpdateLDoNPoints(int, unsigned
  int)':
client.cpp:990: warning: comparison between signed and unsigned integer
  expressions
client.cpp:999: warning: comparison between signed and unsigned integer
  expressions
client.cpp:1009: warning: comparison between signed and unsigned integer
  expressions
client.cpp:1019: warning: comparison between signed and unsigned integer
  expressions
client.cpp:1029: warning: comparison between signed and unsigned integer
  expressions
client.cpp:1039: warning: comparison between signed and unsigned integer
  expressions
client.cpp: In member function `virtual sint32 Client::CalcMaxHP()':
client.cpp:1372: warning: assignment to `sint32' from `float'
client.cpp:1372: warning: argument to `int' from `float'
client.cpp:1374: warning: assignment to `sint32' from `float'
client.cpp:1374: warning: argument to `int' from `float'
client.cpp:1376: warning: assignment to `sint32' from `float'
client.cpp:1376: warning: argument to `int' from `float'
client.cpp: In member function `uint32 Client::NukeItem(unsigned int)':
client.cpp:1905: warning: unused variable `int i'
client.cpp: In member function `void Client::SendManaUpdatePacket()':
client.cpp:2037: warning: assignment to `int32' from `double'
client.cpp:2037: warning: argument to `unsigned int' from `double'
client.cpp: In member function `virtual void
  Client::FillSpawnStruct(NewSpawn_Struct*, Mob*)':
client.cpp:2064: warning: comparison between signed and unsigned integer
  expressions
client.cpp:2065: warning: assignment of negative value `-1' to `int8'
client.cpp:2065: warning: argument of negative value `-1' to `unsigned char'
client.cpp: In member function `void Client::SendItemLink(const ItemInst*,
  bool)':
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp: In member function `bool Client::BindWound(Mob*, bool, bool)':
client.cpp:3280: warning: assignment to `int' from `double'
client.cpp:3280: warning: argument to `int' from `double'
client.cpp: In member function `void Client::Message_StringID(unsigned int,
  unsigned int, const char*, const char*, const char*, const char*, const
  char*, const char*, const char*, const char*, const char*, unsigned int)':
client.cpp:3407: warning: passing `float' for argument passing 3 of `void*
  memset(void*, int, unsigned int)'
client.cpp:3407: warning: argument to `unsigned int' from `float'
client.cpp:3413: name lookup of `i' changed for new ISO `for' scoping
client.cpp:3401:  using obsolete binding at `i'
client.cpp: In member function `bool Client::SwapItem(MoveItem_Struct*)':
client.cpp:3467: warning: comparison between signed and unsigned integer
  expressions
client.cpp:3616: warning: comparison between signed and unsigned integer
  expressions
client.cpp: In member function `uint16 Client::GetAA(unsigned char)':
client.cpp:3896: warning: comparison is always true due to limited range of
  data type
client.cpp: In member function `int16 Client::FindItem(unsigned int)':
client.cpp:3904: warning: unused variable `int16 charges'
make: *** [client.o] Error 1

I'm no expert, but i;m thinking theres a problem with client.o? but honestly........ where do i go from here?

Trumpcard 01-07-2004 08:06 PM

You think?


client.cpp:3413: name lookup of `i' changed for new ISO `for' scoping
client.cpp:3401: using obsolete binding at `i'


change the i's in this for loop to something like int j.. gcc doesnt like reusing a variable outside its defined scope

Gangrif 01-08-2004 03:33 AM

THanks!

Knew i should have taken programming in college...

kicking self in ass

lets see if it works.

Gangrif 01-08-2004 04:09 AM

I think i nabbed all of the "i" variables within that block.. but i still get compile errors on client.o. I wish i knew how to debug this myself.. makes me feel useless..

Anyway, here's the latest pile-o-errors

Code:

StringIDs.h:91:7: warning: no newline at end of file
client.cpp: In member function `bool Client::UpdateLDoNPoints(int, unsigned
  int)':
client.cpp:990: warning: comparison between signed and unsigned integer
  expressions
client.cpp:999: warning: comparison between signed and unsigned integer
  expressions
client.cpp:1009: warning: comparison between signed and unsigned integer
  expressions
client.cpp:1019: warning: comparison between signed and unsigned integer
  expressions
client.cpp:1029: warning: comparison between signed and unsigned integer
  expressions
client.cpp:1039: warning: comparison between signed and unsigned integer
  expressions
client.cpp: In member function `virtual sint32 Client::CalcMaxHP()':
client.cpp:1372: warning: assignment to `sint32' from `float'
client.cpp:1372: warning: argument to `int' from `float'
client.cpp:1374: warning: assignment to `sint32' from `float'
client.cpp:1374: warning: argument to `int' from `float'
client.cpp:1376: warning: assignment to `sint32' from `float'
client.cpp:1376: warning: argument to `int' from `float'
client.cpp: In member function `uint32 Client::NukeItem(unsigned int)':
client.cpp:1905: warning: unused variable `int i'
client.cpp: In member function `void Client::SendManaUpdatePacket()':
client.cpp:2037: warning: assignment to `int32' from `double'
client.cpp:2037: warning: argument to `unsigned int' from `double'
client.cpp: In member function `virtual void
  Client::FillSpawnStruct(NewSpawn_Struct*, Mob*)':
client.cpp:2064: warning: comparison between signed and unsigned integer
  expressions
client.cpp:2065: warning: assignment of negative value `-1' to `int8'
client.cpp:2065: warning: argument of negative value `-1' to `unsigned char'
client.cpp: In member function `void Client::SendItemLink(const ItemInst*,
  bool)':
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp:2295: warning: `0' flag used with `%c' printf format
client.cpp: In member function `bool Client::BindWound(Mob*, bool, bool)':
client.cpp:3280: warning: assignment to `int' from `double'
client.cpp:3280: warning: argument to `int' from `double'
client.cpp: In member function `void Client::Message_StringID(unsigned int,
  unsigned int, const char*, const char*, const char*, const char*, const
  char*, const char*, const char*, const char*, const char*, unsigned int)':
client.cpp:3407: warning: passing `float' for argument passing 3 of `void*
  memset(void*, int, unsigned int)'
client.cpp:3407: warning: argument to `unsigned int' from `float'
client.cpp:3413: name lookup of `j' changed for new ISO `for' scoping
client.cpp:3401:  using obsolete binding at `j'
client.cpp: In member function `bool Client::SwapItem(MoveItem_Struct*)':
client.cpp:3467: warning: comparison between signed and unsigned integer
  expressions
client.cpp:3616: warning: comparison between signed and unsigned integer
  expressions
client.cpp: In member function `uint16 Client::GetAA(unsigned char)':
client.cpp:3896: warning: comparison is always true due to limited range of
  data type
client.cpp: In member function `int16 Client::FindItem(unsigned int)':
client.cpp:3904: warning: unused variable `int16 charges'
make: *** [client.o] Error 1
[root@www zone]#


Trumpcard 01-08-2004 04:38 AM

paste what you changed... look through the threads.. theres one with the exact change you need to make.. doesnt look like you did something right...

Gangrif 01-08-2004 04:56 AM

This thread?

Looks that way.. Thanks though! Sorry for asking a re-peat question.


All times are GMT -4. The time now is 11:46 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.