| From: | Kyle Miller |
| Date: | 24 Oct 2000 at 00:41:12 |
| Subject: | Re: Help with C Programming |
From: "Brian Kimpton" <bri@bkimpton.freeserve.co.uk>
> Just a quick question. When I try compiling a program with StormC v3.0, I
get the following errors (52 to be precise, the last one saying there are
*too many* errors):
>
> *Error:* Declaration expected.
> #...pictureclass.h#, Line 226: UBYTE red,green,blue;
>
> *Error:* ";" expected.
> #...pictureclass.h#, Line 226: UBYTE red,green,blue;
>
> I've looked at pictureclass.h line 226:
>
> struct ColorRegister
> {
> UBYTE red, green, blue;
> };
Unless I'm misunderstanding something here, surely that should be,
struct ColorRegister
{
UBYTE red;
UBYTE green;
UBYTE blue;
};
I guess you could write it the way shown but you'll probably find that the
compiler used for ReActor worked ok.
Either that or it doesn't understand what a UBYTE is and you've missed out
an include somewhere.
Hope this helps.
Dr. Kyle Miller
/* If you can read this it's not too late for you */
Quote carefully and read all ADMIN:README mails