April 23, 2024, 03:57:29 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Compiler error that gives no output

Started by Rock Ridge Farm (Larry), September 27, 2006, 07:21:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rock Ridge Farm (Larry)

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;

LarryMc

doesn't s_prev and s_next need a * in front like linked_list has in acommon.inc?
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Rock Ridge Farm (Larry)

Duh - That fixed it.
Still strange the compiler did not pick it up with a more descriptive error.

Parker

I remember you bringing up this same problem recently :D - it's not fixed in Rev1?

Ionic Wind Support Team

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' ;)

Ionic Wind Support Team

Parker

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.