Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-28-2012, 04:59 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Ok, Cavedude brought to my attention that this will not compile on Linux.

Since I can't test on a Linux system, I was wondering if someone with knowledge could give me a pointer as to what isn't right about this.

Code:
Corpse::Corpse(Client* client, sint32 in_rezexp)
{...

	std::list<uint32> removed_list;

	...
		removed_list.merge(MoveItemToCorpse(client, item, i));

	...
		removed_list.merge(MoveItemToCorpse(client, item, i));

...}

std::list<uint32> Corpse::MoveItemToCorpse(Client *client, ItemInst *item, sint16 equipslot)
{...

	std::list<uint32> returnlist;

	...
	return returnlist;
}

Obviously, the first function calls the second one for the return list to merge.

Problem is, the compiler is kicking back a 'no matching function for call to std::list<unsigned int>::merge(std::list<unsigned int>)' for both merge calls.

Removed_list is not used between its definition and the first merge call.


I did change the return type for 'MoveItemToCorpse' in the header file..and it does compile and work correctly in windows.


Could it be one of these? (Or something else entirely?)

- Lack of an '#include' or 'using namespace' in the *.h file (because of return type change from uint32)
- The 'removed_list' is defined, but not initiated
- A 'list.merge()' argument can't be a function even though the return type is valid


I am googling this...
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:14 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3