Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-20-2005, 04:17 PM
jlapier
Fire Beetle
 
Join Date: May 2005
Posts: 2
Default Problems compiling EMuShareMem (from 6.0-DR2) in Linux (Fedora Core 3)

Can anyone tell me how I can fix this error? It appears to have compiled all the other files in the directory, it's just bombing on the spells.cpp.

Thanks,
- Jason


Code:
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wno-deprecated -Wcomment -Wcast -align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -DEMUSHAREMEM -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX -I'/us r/include/mysql' -c MMFMutex.cpp -o MMFMutex.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wno-deprecated -Wcomment -Wcast -align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -DEMUSHAREMEM -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX -I'/us r/include/mysql' -c Doors.cpp -o Doors.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wno-deprecated -Wcomment -Wcast -align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -DEMUSHAREMEM -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX -I'/us r/include/mysql' -c Items.cpp -o Items.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wno-deprecated -Wcomment -Wcast -align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -DEMUSHAREMEM -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX -I'/us r/include/mysql' -c Spells.cpp -o Spells.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from ../zone/client.h:38,
                 from ../zone/masterentity.h:6,
                 from Spells.cpp:13:
../zone/../common/Item.h:261: error: `sint16 Inventory::_PutItem(sint16, ItemInst*)' is protected
../zone/../common/Item.h:453: error: within this context
../zone/../common/Item.h:264: error: `sint16 Inventory::_HasItem(std::map<sint16, ItemInst*, std::less<sin t16>, std::allocator<std::pair<const sint16, ItemInst*> > >&, const Item_Struct*, uint8)' is protected
../zone/../common/Item.h:514: error: within this context
../zone/../common/Item.h:266: error: `sint16 Inventory::_HasItemByUse(std::map<sint16, ItemInst*, std::les s<sint16>, std::allocator<std::pair<const sint16, ItemInst*> > >&, uint8, uint8)' is protected
../zone/../common/Item.h:516: error: within this context
../zone/../common/Item.h:261: error: `sint16 Inventory::_PutItem(sint16, ItemInst*)' is protected
../zone/../common/Item.h:523: error: within this context
make: *** [Spells.o] Error 1
Reply With Quote
  #2  
Old 05-21-2005, 11:14 AM
jlapier
Fire Beetle
 
Join Date: May 2005
Posts: 2
Default

bah - I just made the referenced protected methods public....we'll see if that breaks anything...

- Jason
Reply With Quote
  #3  
Old 06-29-2005, 02:04 PM
loser
Fire Beetle
 
Join Date: Jun 2005
Posts: 9
Default same error

hi,

noob here.

whats the problem if i get the same error?

Loser
Reply With Quote
  #4  
Old 06-29-2005, 03:47 PM
nysson
Fire Beetle
 
Join Date: Jul 2004
Posts: 19
Default

Go into Item.h and fine the the line 261. Above that look for where it states that these files are Protected:

Change Protected to Public and it should compile. At least it did for me.
Reply With Quote
Reply


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 09:04 AM.


 

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