IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Rock Ridge Farm (Larry) on September 27, 2006, 07:21:14 AM

Title: Compiler error that gives no output
Post by: Rock Ridge Farm (Larry) on September 27, 2006, 07:21:14 AM
I have the following that causes the compiler to exit with the message:
    Error(s) in compiling
no other information just the message.
The offending code seg.

struct squadron {
int row;
int col;
int course;
int type;
int from;
squadron s_next;
squadron s_prev;
int planes;
int fuel;
int attack;
}

squadron federation;
Title: Re: Compiler error that gives no output
Post by: LarryMc on September 27, 2006, 07:28:11 AM
doesn't s_prev and s_next need a * in front like linked_list has in acommon.inc?
Title: Re: Compiler error that gives no output
Post by: Rock Ridge Farm (Larry) on September 27, 2006, 07:53:38 AM
Duh - That fixed it.
Still strange the compiler did not pick it up with a more descriptive error.
Title: Re: Compiler error that gives no output
Post by: Parker on September 27, 2006, 09:03:14 AM
I remember you bringing up this same problem recently :D - it's not fixed in Rev1?
Title: Re: Compiler error that gives no output
Post by: Ionic Wind Support Team on September 27, 2006, 10:24:55 AM
It's a stack overflow due to the endless loop and by the time the overflow happens then OS has already killed the process.  So the only error I can give is 'stack overflow' ;)

Title: Re: Compiler error that gives no output
Post by: Parker on September 27, 2006, 03:52:32 PM
What I mean is that shouldn't compile since it's impossible to do. The size of that structure is infinite, which you can't really do.