Linux Compile eoors on lasest CVS (11-05-2004)
I just got the lastest CVS snapshot a few minutes ago and it will not build.
First of all I would like to point out that in the makefiles, the CFLAG -Wstrict-prototypes is not a vailed flag when compiling C++ code, only C or ObjC. Anyway, that's just an anoying warning I get when building. Anyways, the real errors I get are as follows. EMuShareMem Code:
In file included from ../zone/client.h:38, Code:
../common/EQNetwork.cpp: In function `type HI_LOSWAPlong(type)': gcc (GCC) 3.4.2 20041025 (Gentoo Hardened Linux 3.4.2-r3, ssp-3.4.1-1, pie-8.7.6.5) Hope this helps someone. |
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) Code:
HI_LOSWAPlong (type a) Code:
if( ( abs(mob->GetX() - sender->GetX() ) > iArrgoRange) Code:
if( ( abs ((int)(mob->GetX() - sender->GetX() )) > iArrgoRange) |
All times are GMT -4. The time now is 12:46 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.