www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/10/11:35:53

Date: Thu, 10 Apr 1997 11:18:05 -0400 (EDT)
From: Michael Phelps <morphine AT hops DOT cs DOT jhu DOT edu>
To: Piotr Kania <kania AT ci3ux DOT ci DOT pwr DOT wroc DOT pl>
cc: djgpp AT delorie DOT com
Subject: Re: enum and djgpp
In-Reply-To: <Pine.SCO.3.91.970409205257.9068A-100000@ci3ux.ci.pwr.wroc.pl>
Message-ID: <Pine.GSO.3.95.970410111701.28646A-100000@hops.cs.jhu.edu>
MIME-Version: 1.0

> 
> 
> On Mon, 7 Apr 1997 mtc AT acsu DOT buffalo DOT edu wrote:
> 
> > 
> >     I am just try to do a simple enum like
> > 
> >     enum constants { false = 0, true = 1};
> > 
> >     This statement which will compile under other compilers will not
> > with djgpp I get a parse error before false and a missing ';' after
> > right bracket error. any ideas ?
> > 
> >         thanks
> > 
> >     Michael T Collins
> > 
> > 
> >
> Im my opionion you must compile it as c++ (with extension .cpp) becouse 
> enum works only with c++
> 
> 	Cornholio ;-D
>  
> 

Huh?  enum is a valid keyword in both C and C++.

						---Michael Phelps
						   morphine AT cs DOT jhu DOT edu


- Raw text -


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