20 Jul, 2006, Kuriyama wrote in the 1st comment:
Votes: 0
Hey folks, I know this is my first post an all, but I've been having a problem with an older snippet and for whatever reason, my eyes just can't seem to spot the problem,
Anyways, it's 2.4b6 being compiled on an OpenSuSE 10.1 box.

zach@linux:~/Desktop/QuickMUD/src> make
gcc -O -g3 -Wall -c -o obj/act_comm.o act_comm.c
In file included from act_comm.c:44:
clan.h:16: error: array type has incomplete element type
clan.h:17: error: array type has incomplete element type

Here's lines 16&17:
extern const struct clan_type clan_table [MAX_CLAN];
extern const struct clan_titles clan_rank_table [MAX_RANK];



/* Stuff from clan.c */
And for completeness, here's my clan_table and clan_rank_table:
const struct clan_type clan_table[] = {
/* name, who entry, sac_god, deathroom, recall, indepnt, min level */

{"", "{c[ {c]", "{RKuriyama{x", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, TRUE, 0},
{"Loner", "{c[{w LONER {c]", "{RKuriyama{x", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, TRUE, 6},
{"Outcast", "{c[{wOUTCAST{c]", "{RKuriyama{x", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, TRUE, 10},
{"Anarchy", "{c[{wANARCHY{c]", "Kuriyama", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, FALSE, 20},
{"—–", "{c[{w —– {c]", "Kuriyama", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, FALSE, 20},
{"Death", "{c[{w DEATH {c]", "Kuriyama", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, FALSE, 20},
{"Hades", "{c[{G HADES {c]", "Kuriyama", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, FALSE, 20},
{"Viper", "{c[{w VIPER {c]", "Kuriyama", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, FALSE, 20},
{"Light", "{c[{w LIGHT {c]", "Kuriyama", ROOM_VNUM_MORGUE, ROOM_VNUM_TEMPLE, FALSE, 20},
{"Demon", "{c[{R DEMON {c]", "Kuriyama", ROOM_VNUM_GODROOM, ROOM_VNUM_GODROOM, FALSE, 60},
{NULL, NULL, NULL, NULL, NULL, NULL, 0}
};

const struct clan_titles clan_rank_table[] = {
{" "},
{"{rJUNIOR{x"},
{"{RSENIOR{x"},
{"{yDEPUTY{x"},
{"{YSECOND{x"},
{"{WLEADER{x"},
{NULL}
};


Any help would be great, like I said, my eyes just can't seem to find the problem. If you need more info, let me know and I'll post it up here.
20 Jul, 2006, Tyche wrote in the 2nd comment:
Votes: 0
Kuriyama said:
Here's lines 16&17:
extern const struct clan_type clan_table [MAX_CLAN];
extern const struct clan_titles clan_rank_table [MAX_RANK];


The declarations for clan_type and clan_titles need to come before the above lines. They are not shown and probably in clan.h after the above lines. The declarations probably look something like…

struct clan_type {
blah blah
};

struct clan_titles {
blah blah
};

The warnings are due to gcc compiler changes starting with version 3.4
0.0/2