View Full Version : Error compiling rev 264 -- Linux
Andrew80k
01-08-2009, 10:27 PM
I got this:
client.h:531: error: extra qualification ‘Client::’ on member ‘BotTradeSwapItem’
client.h:532: error: extra qualification ‘Client::’ on member ‘BotTradeAddItem’
I didn't see anything in the changes to make me think I need to do something different. Did I miss something?
Angelox
01-08-2009, 11:20 PM
It just compiled ok with me - what version gcc are you using? (mine is 3.4.6)
Angelox
01-08-2009, 11:55 PM
Anyway, since I'm going to bed, I think it's a gcc thing - you using gcc 4x?
in client.h lines 531, 532 ;
void Client::BotTradeSwapItem(NPC* bot, sint16 lootSlot, uint32 id, sint16 maxCharges, uint32 equipableSlots, bool swap = true);
void Client::BotTradeAddItem(uint32 id, sint16 maxCharges, uint32 equipableSlots, int16 lootSlot, NPC* bot, bool addToDb = true);
Replace with this;
void BotTradeSwapItem(NPC* bot, sint16 lootSlot, uint32 id, sint16 maxCharges, uint32 equipableSlots, bool swap = true);
void BotTradeAddItem(uint32 id, sint16 maxCharges, uint32 equipableSlots, int16 lootSlot, NPC* bot, bool addToDb = true);
It compiles both ways with me on my gcc 3x but I think the first one is a gcc -related problem, and I'm not sure the second is a correct fix either (you have to test if it compiles) .
It's not normal for function definitions to be like that anyway. I guess I gotta take an hour to look at submissions.
Andrew80k
01-09-2009, 12:05 PM
thanks, Angelox. I'll give that a whirl.
cubber
01-09-2009, 12:09 PM
Worked for me.
Congdar
01-09-2009, 04:15 PM
that's my bad, i did a cut/paste and forgot to remove the Client:: part. I'll put in a fix.
Congdar
01-09-2009, 04:16 PM
that's my bad, i did a cut/paste and forgot to remove the Client:: part. I'll put in a fix. Strange I didn't get an error... maybe a there was a warning but there are so many of those anyway.
Andrew80k
01-10-2009, 12:46 AM
Thanks, Congdar. Works now!
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.