Mail Archives: djgpp/1998/10/02/07:21:36
Thanks for the answer. I also found that changing the declaration
typedef struct { byte a; byte b; byte c; } Abc;
to
class Abc { public: byte a; byte b; byte c; };
also eliminates the errors.
Richard.
Erik Max Francis wrote:
>
> Richard wrote:
> >
> > This code is valid C++, but the problem is that gcc complains about it.
> >
> > Does anyone know what's wrong?
>
> It's not totally obvious why gcc is complaining about this to me, but
> changing the declaration
>
> typedef struct { byte a; byte b; byte c; } Abc;
>
> to the more reasonable
>
> struct Abc { byte a; byte b; byte c; };
>
> eliminates the errors.
>
> --
> Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900
> Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
> San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
> USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
> \
> / The work will teach you how to do it.
> / (an Estonian proverb)
- Raw text -