|
4. RE: ROT -Paradox MUD Startup Error
|

rate thread
hide
Raw Rating: 3.00
2 rating votes to-date
You have not rated this thread
|
Tue Jul 22, 2008 [12:19 AM]
|
Tyche
Email not supplied
member since: Apr 4, 2000
|
In Reply To
Reply
|
gcc 4.x tightened up some C rules. The following used to work...
extern const struct my_type my_array[];
struct my_type
{
char * a;
int b;
};
You now need to make sure the type is visible before using it in an array declaration like so...
struct my_type
{
char * a;
int b;
};
extern const struct my_type my_array[];
|
|
The Sourcery - http://sourcery.dyndns.org
TeensyMud - http://teensymud.kicks-ass.org
"A man can receive nothing, except it be given him from heaven."
|