delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/30/12:46:21

Message-Id: <m0zOPMZ-000S4xC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: budha AT dds DOT nl, djgpp AT delorie DOT com
Date: Wed, 30 Sep 1998 13:45:50 +0000
MIME-Version: 1.0
Subject: Re: WEIRD GCC error
In-reply-to: <3612BEEB.697F@dds.nl>
X-mailer: Pegasus Mail for Windows (v2.54)

Richard <budha AT dds DOT nl> wrote:

> // When this code is compiled (w. gcc), the following errors are given:
> 
> //   Compiling: test.cpp
> //   rgb.cpp(25) Error: semicolon missing after declaration of `struct Class1::Abc'
> //   In method `int Class2::Func(class Class2 *)':
> //   rgb.cpp(29) Error: parse error before `;'
> //   There were some errors
> 
> // What is the problem here? (in Borland C++ this works)
> //  Thanks, Richard. (Please cc your solution to my email address)
> 
> class Class1
> { public:
>   typedef char byte;
>   typedef struct { byte a; byte b; byte c; } Abc;

Isn't it:

   typedef struct Abc { byte a; byte b; byte c; };

?

> };

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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