delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/22/03:44:38

From: G DOT DegliEsposti AT ads DOT it
To: loren <loren AT seric DOT es>
cc: djgpp AT delorie DOT com
Message-ID: <C12565EE.0029777B.00@vega.ads.it>
Date: Wed, 22 Apr 1998 09:36:48 +0200
Subject: Re: Still trying with OOP in DJGPP
Mime-Version: 1.0




>Uh Oh ... don't work .... again...
>
>class MyClass {
[...]
>};
>
>Don't works !!! X'(((
>
>DJGPP gives me this error: "parse error before 'class'" or something
>like this ...

Well, it seems like the error occurs before "class"... post here the
smallest complete program that gives you problems and also the exact
steps you do to compile it (from the command line, from rhide, ...)

If this was the complete source, then I have this question: was your
file named with .c extension? In this case gcc tries to compile it
as a C program, and class is not recognized in C, only in C++.

ciao
  Giacomo




- Raw text -


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