Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" 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 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: WEIRD GCC error In-reply-to: <3612BEEB.697F@dds.nl> X-mailer: Pegasus Mail for Windows (v2.54) Richard 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