EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Problems compiling EMuShareMem (from 6.0-DR2) in Linux (Fedora Core 3) (https://www.eqemulator.org/forums/showthread.php?t=18601)

jlapier 05-20-2005 04:17 PM

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


jlapier 05-21-2005 11:14 AM

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

- Jason

loser 06-29-2005 02:04 PM

same error
 
hi,

noob here.

whats the problem if i get the same error?

Loser

nysson 06-29-2005 03:47 PM

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.


All times are GMT -4. The time now is 04:07 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.