The following is valid on Linux:
struct torpedo {
int row, col;
int course;
int fromship;
int timeleft;
struct torpedo *next_torp;
}
It is not in Aurora. - It does not like the pointer reference to a structure of the same type within the structure.
Help!
Just remove the 'struct' keyword.
struct torpedo {
int row, col;
int course;
int fromship;
int timeleft;
torpedo *next_torp;
}
Compiler already knows it's a structure.