|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days. |
|
|
|
01-07-2004, 01:12 PM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
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?
|
|
|
|
01-07-2004, 08:06 PM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
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
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|
01-08-2004, 03:33 AM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
THanks!
Knew i should have taken programming in college...
kicking self in ass
lets see if it works.
|
|
|
|
01-08-2004, 04:09 AM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
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]#
|
|
|
|
01-08-2004, 04:38 AM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
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...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|
01-08-2004, 04:56 AM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
This thread?
Looks that way.. Thanks though! Sorry for asking a re-peat question.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 11:52 AM.
|
|
|
|
|
|
|
|
|
|
|
|
|