OK I have by far the strangest problem I've ever encountered. Back in march this was compiling clean and without a problem. Just moved it to my new laptop running Cygwin and out pop's this error. The code in question hasn't been changed (Nothing has since March). Any clue's on what may of caused this and how to correct it?
Notes: Codebase is Smaug 1.4a, pretty heavily modified now.
Compile Errors:
Lines in question are:
There are more, but all are vastly similar to the above segments.
All compile attempts were on Cygwin under Windows XP SP 3 (Cygwin release is 05 Dec 2009) and Windows 7 (Same Cygwin package). I also attempted this on my Ubuntu box but same error outputs (Ubuntu Linux 8.04.3).
Notes: Codebase is Smaug 1.4a, pretty heavily modified now.
Compile Errors:
make[1]: Entering directory `/home/talairina/src'
gcc -c -O -g3 -Wall -Wuninitialized -Dsmaug -DTIMEFORMAT act_comm.c
In file included from act_comm.c:32:
mud.h:3868: error: array type has incomplete element type
mud.h:3876: error: array type has incomplete element type
mud.h:3884: error: array type has incomplete element type
mud.h:3892: error: array type has incomplete element type
mud.h:3900: error: array type has incomplete element type
mud.h:3907: error: array type has incomplete element type
mud.h:3909: error: array type has incomplete element type
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/home/talairina/src'
make: *** [all] Error 2
Lines in question are:
extern const struct weight_type weight_type_table[];
struct weight_type
{
char *weight_type_list[1];
};
/* height table */
extern const struct height_type height_type_table[];
struct height_type
{
char *height_type_list[1];
};
There are more, but all are vastly similar to the above segments.
All compile attempts were on Cygwin under Windows XP SP 3 (Cygwin release is 05 Dec 2009) and Windows 7 (Same Cygwin package). I also attempted this on my Ubuntu box but same error outputs (Ubuntu Linux 8.04.3).