PDA

View Full Version : packet.cpp compile problems?



cheese_poker
11-29-2002, 04:00 PM
Hello,

I am having troubles getting the latest SEQ compiled.

I updated with CVS, and did a make clean. when I do the make it give a few lines of errors :

packet.cpp: In member function 'void EQPacket::decodePacket(int, unsigned char*)':
packet.cpp:1020 'keystruct' undeclared (first use this function)
packet.cpp:1020 'keypacket' undeclared (first use this function)
packet.cpp:1020 parse error before ')' token
packet.cpp: In member function 'void EQPacket::dispatchZoneData(unsigned int, uint8_t*, unsigned char)':
packet.cpp:1900: 'cItemInShopStruct' undeclared (first use function)
packet.cpp:1900: 'citems' undeclared (first use this function)
packet.cpp:1901: parse error before ')' token
make: *** [packet.o] Error 1

I tried to do everything from scratch, download gcc and recompile that. Get the new libEQ.a again (checked the md5sum). I grabbed packet.cpp and packet.h directly from browsing CVS.

I really don't know what to try next. I did about 3 nights of searching here, and didn't make any progress.

Any help would be greatly appreciated.

Thanks

The Mad Poet
11-29-2002, 04:14 PM
if your header file was modified the CVS update would not overwrite it - and this looks like a header file issue.

You could always do what I do rm cvs/showeq -r then download the sucker again in totall.

This IMO would fix your issue.

cheese_poker
11-30-2002, 01:01 AM
Thanks Mad Poet. I deleted everything and redid the whole enchilada. It works :)

Sometimes the simplest solution is the hardest to see.

Brillen
12-02-2002, 07:05 PM
I am having a similar problem. Here is the error messages I am getting. I've tried downloading from the CVS fresh many times. I am using gcc3.2 if that matters.

packet.cpp:291: default argument given for parameter 3 of `
EQUDPIPPacketFormat::EQUDPIPPacketFormat(uint8_t*, unsigned int, bool =
false)'
packet.h:421: after previous specification in `
EQUDPIPPacketFormat::EQUDPIPPacketFormat(uint8_t*, unsigned int, bool =
false)'
packet.cpp:313: default argument given for parameter 2 of `
EQUDPIPPacketFormat::EQUDPIPPacketFormat(EQUDPIPPa cketFormat&, bool = false)
'
packet.h:424: after previous specification in `
EQUDPIPPacketFormat::EQUDPIPPacketFormat(EQUDPIPPa cketFormat&, bool = false)
'
packet.cpp:890: default argument given for parameter 4 of `bool
EQPacket::logData(const char*, unsigned int, const uint8_t*, unsigned int =
0, unsigned int = 0, short unsigned int = 0, short unsigned int = 0)'
packet.h:685: after previous specification in `bool EQPacket::logData(const
char*, unsigned int, const uint8_t*, unsigned int = 0, unsigned int = 0,
short unsigned int = 0, short unsigned int = 0)'
packet.cpp:890: default argument given for parameter 5 of `bool
EQPacket::logData(const char*, unsigned int, const uint8_t*, unsigned int =
0, unsigned int = 0, short unsigned int = 0, short unsigned int = 0)'
packet.h:685: after previous specification in `bool EQPacket::logData(const
char*, unsigned int, const uint8_t*, unsigned int = 0, unsigned int = 0,
short unsigned int = 0, short unsigned int = 0)'
packet.cpp:890: default argument given for parameter 6 of `bool
EQPacket::logData(const char*, unsigned int, const uint8_t*, unsigned int =
0, unsigned int = 0, short unsigned int = 0, short unsigned int = 0)'
packet.h:685: after previous specification in `bool EQPacket::logData(const
char*, unsigned int, const uint8_t*, unsigned int = 0, unsigned int = 0,
short unsigned int = 0, short unsigned int = 0)'
packet.cpp:890: default argument given for parameter 7 of `bool
EQPacket::logData(const char*, unsigned int, const uint8_t*, unsigned int =
0, unsigned int = 0, short unsigned int = 0, short unsigned int = 0)'
packet.h:685: after previous specification in `bool EQPacket::logData(const
char*, unsigned int, const uint8_t*, unsigned int = 0, unsigned int = 0,
short unsigned int = 0, short unsigned int = 0)'
packet.cpp:1323: default argument given for parameter 3 of `void
EQPacket::dispatchZoneData(int, uint8_t*, int = 0)'
packet.h:703: after previous specification in `void
EQPacket::dispatchZoneData(int, unsigned char*, int = 0)'