user:~/emp/src$ make
make ../bin/empire
make[1]: Entering directory `/home/user/emp/src'
make[1]: `../bin/empire' is up to date.
make[1]: Leaving directory `/home/user/emp/src'
make utils
make[1]: Entering directory `/home/user/emp/src'
(cd util; make all)
make[2]: Entering directory `/home/user/emp/src/util'
make[2]: *** No rule to make target `delobjs.c', needed by `../../bin/delobjs'. Stop.
make[2]: Leaving directory `/home/user/emp/src/util'
make[1]: *** [utils] Error 2
make[1]: Leaving directory `/home/user/emp/src'
make: *** [all] Error 2
if (world[i].home_room != NOWHERE && world[real_room(world[i].home_room)].burning && world[i].people)
act("The walls crackle and crisp as they burn!", FALSE, world[i].people, 0, 0, TO_CHAR | TO_ROOM);
if (world[i].home_room != NOWHERE) {
int rizzoom = world[i].home_room;
if (world[rizzoom].burning > 0)
if (world[i].people != NULL)
act("The walls crackle and crisp as they burn!", FALSE, world[i].people, 0, 0, TO_CHAR | TO_ROOM);
}
For example:
in utils.c
char *PERS(Creature ch, Creature vict, bool real) {
static char output[MAX_INPUT_LENGTH];
if (!CAN_SEE(vict, ch))
return "someone";
if (!IS_NPC(ch) && GET_MORPH(ch) && !real)
return morph_string(ch, MORPH_STRING_NAME); <—583
strcpy(output, GET_NAME(ch));
if (!IS_NPC(ch) && GET_LASTNAME(ch))
sprintf(output + strlen(output), " %s", GET_LASTNAME(ch));
return output;
}
which is defined here in handler.h
The top of the file utils.c has
among other .h includes.
Why would it say undefined reference?