compilation error

Discussion about topics that don't fit elsewhere.
Post Reply
binMonkey
Posts: 4
Joined: Wed Feb 02, 2011 10:20 pm

compilation error

Post by binMonkey »

hi, guys.

i'm running ubuntut 10.04 and successfully compile server version 4.8.8 but i cannot get 4.8.8a working. i get the following error:


server/xtra2.c: In function ‘player_death’:
server/xtra2.c:5977: error: ‘WPOS_IRONDEEPDIVE_X’ undeclared (first use in this function)
server/xtra2.c:5977: error: (Each undeclared identifier is reported only once
server/xtra2.c:5977: error: for each function it appears in.)
server/xtra2.c:5978: error: ‘WPOS_IRONDEEPDIVE_Y’ undeclared (first use in this function)
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make: *** [server/xtra2.o] Error 1

i've tried poking around in xtra2.c but couldn't figure anything out. can someone point me in the right direction to get this new version running, please?

thanks,

rich
mikaelh
Developer
Posts: 217
Joined: Sun Dec 13, 2009 3:18 pm

Re: compilation error

Post by mikaelh »

You need to edit src/common/defines-local.h.

It should say something like this:
/* Permanent event "Ironman Deep Dive Challenge": */
//#define WPOS_IRONDEEPDIVE_X ??
//#define WPOS_IRONDEEPDIVE_Y ??
These are the hard-coded coordinates for the ironman deep dive challenge. You can just put any values there. For example, 0 will do fine for both:
/* Permanent event "Ironman Deep Dive Challenge": */
#define WPOS_IRONDEEPDIVE_X 0
#define WPOS_IRONDEEPDIVE_Y 0
Sorry for the late reply. I've been meaning to get around to writing this reply but then never had the time nor the motivation.
Post Reply