Originally Posted by
Adak
Looks like you're trying to create an array of structs in Linux, without specifying the size of the array. Add a #define for MAX_SIZE, or provide some other suitable size for it.
Empty squared brackets just won't work.
Again, did you provide a size for your arrays in those lines?
Code:
extern struct COMPETITOR competitor[];
extern struct COMPETITOR competitor_sav[];
I can't understand what those lines mean, actually.
Maybe you want this instead?
Code:
extern struct COMPETITOR * competitor;
extern struct COMPETITOR * competitor_sav;
or
Code:
struct COMPETITOR competitor[MAX_SIZE];
struct COMPETITOR competitor_sav[MAX_SIZE];
It would help if you would give us a short complete example that works on AIX and not on Linux.