IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Rock Ridge Farm (Larry) on August 07, 2006, 10:30:58 AM

Title: Structure question
Post by: Rock Ridge Farm (Larry) on August 07, 2006, 10:30:58 AM
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!

Title: Re: Structure question
Post by: Ionic Wind Support Team on August 07, 2006, 10:47:35 AM
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.