Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-15-2004, 03:39 AM
ellF
Fire Beetle
 
Join Date: Nov 2004
Location: Rochester, NY
Posts: 1
Default Dirty Solutions

I'm struggling with the same errors. Here's what I've found:

1. common/Item.h declares _GetItem(), _PutItem(), and _HasItem() as protected member functions on and around line 243. Commenting out the protected keyword makes them public, which eliminates this error, but it's probably not what should be done. I'm not certain why that error is being thrown -- I'm only a mediocre coder.

2. You can get by the type error by adding -fpermissive to the compiler options in the makefile. I imagine that we gentoo users have more recent versions of gcc than the developers are using for eqemu, and we're running into this error because (as the error message indicates) using an undeclared name has been deprecated.

Hope that helps!

EDIT: An additonal tip for getting this compiled with gcc-3.4: in common/EQNetwork.cpp, on line 73, change
Code:
HI_LOSWAPlong (type x)
to
Code:
HI_LOSWAPlong (type a)
EDIT: zone/MobAI.cpp makes three calls to abs() without explicitly casting the passed value as an int. This version of gcc, at least, complains of ambiguity. Explicitly casting the values resolves the error. In zone/MobAI.cpp, starting on line 238, change
Code:
 if(   ( abs(mob->GetX() - sender->GetX() ) > iArrgoRange)
			   || ( abs (mob->GetY() - sender->GetY() ) > iArrgoRange)
			   || ( abs (mob->GetZ() - sender->GetZ() ) > iArrgoRange)
to
Code:
 if(   ( abs ((int)(mob->GetX() - sender->GetX() )) > iArrgoRange)
			   || ( abs ((int)(mob->GetY() - sender->GetY() )) > iArrgoRange)
			   || ( abs ((int)(mob->GetZ() - sender->GetZ() )) > iArrgoRange)
EDIT: OK, I'm starting to think that I should make a separate thread. Anyways, I found that loading the EMuShareMem library would cause a segmentation fault on my machine, which seems to be a known problem with systems running the 2.6 kernel. The problem was solved http://www.eqemulator.net/forums/vie...entation+fault here -- you need to edit MMF.cpp and remove all occurances of the string "IPC_NOWAIT", then recompile the library.
Reply With Quote
 

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 08:50 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