www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/02/07:21:36

From: Richard <budha AT dds DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: WEIRD GCC error
Date: Fri, 02 Oct 1998 12:57:51 -0700
Organization: -
Lines: 36
Message-ID: <3615303F.16B6@dds.nl>
References: <3612BEEB DOT 697F AT dds DOT nl> <3613F259 DOT 97C AT dds DOT nl> <3613D30E DOT 1213954D AT alcyone DOT com>
Reply-To: budha AT dds DOT nl
NNTP-Posting-Host: annex1s33.urc.tue.nl
Mime-Version: 1.0
X-Mailer: Mozilla 3.03 (Win95; I; 16bit)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019