www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/10/08:23:51

From: Piotr Kania <kania AT ci3ux DOT ci DOT pwr DOT wroc DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: enum and djgpp
Date: Wed, 9 Apr 1997 20:55:02 +0200
Organization: Technical Univeristy of Wroclaw
Lines: 24
Message-ID: <Pine.SCO.3.91.970409205257.9068A-100000@ci3ux.ci.pwr.wroc.pl>
References: <33494D3F DOT 606307FA AT cs DOT buffalo DOT edu>
NNTP-Posting-Host: ci3ux.ci.pwr.wroc.pl
Mime-Version: 1.0
In-Reply-To: <33494D3F.606307FA@cs.buffalo.edu>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


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
 

- Raw text -


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