Mail Archives: djgpp/1998/09/30/12:46:21
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 -