From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: WEIRD GCC error Date: Thu, 01 Oct 1998 12:07:58 -0700 Organization: Alcyone Systems Lines: 25 Message-ID: <3613D30E.1213954D@alcyone.com> References: <3612BEEB DOT 697F AT dds DOT nl> <3613F259 DOT 97C AT dds DOT nl> NNTP-Posting-Host: charmaine.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.34 i686) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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)