To correct this problem, ensure something like this exists in merc.h:

#define PLAYER_DIR      "../player/"         /* Player files           */


In fact, one of the problems you may be experiencing comes from something like this in merc.h:

#if defined(macintosh)
#define PLAYER_DIR      ""                  /* Player files            */
#define TEMP_FILE       "romtmp"
#define NULL_FILE       "proto.are"         /* To reserve one stream   */
#endif

#if defined(MSDOS)
#define PLAYER_DIR      ""                   /* Player files           */
#define TEMP_FILE       "romtmp"
#define NULL_FILE       "nul"                /* To reserve one stream  */
#endif

#if defined(unix)
#define PLAYER_DIR      "../player/"         /* Player files           */
#define GOD_DIR         "../gods/"           /* list of gods           */
#define TEMP_FILE       "../player/romtmp"
#define NULL_FILE       "/dev/null"          /* To reserve one stream  */
#endif

I don't know which (if any) that OS X uses. I'd tell you how to figure out what your OS is "defined" as (e.g. WIN32, UNIX, etc), but I'm way too lazy to google it up.

Ryan Scott Bardsley wrote:

Hello,

I am trying to compile ROM2.4 on my Mac running OS X. When I try to compile I get the following error:

Welcome to Darwin!
Klaipeda:~ rscott$ cd Desktop/Rom24
Klaipeda:~/Desktop/Rom24 rscott$ cd src
Klaipeda:~/Desktop/Rom24/src rscott$ make &
[1] 1074
Klaipeda:~/Desktop/Rom24/src rscott$ gcc -c -Wall -O -g  act_comm.c
act_comm.c: In function `do_delete':
act_comm.c:67: error: `PLAYER_DIR' undeclared (first use in this function)
act_comm.c:67: error: (Each undeclared identifier is reported only once
act_comm.c:67: error: for each function it appears in.)
make: *** [act_comm.o] Error 1

Can anyone give me a pointer as to what I am doing wrong?

Thanks,

Ryan


Reply via email to