From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: enum and djgpp Date: Fri, 11 Apr 1997 08:20:57 -0700 Organization: Alcyone Systems Lines: 24 Message-ID: <334E56D9.3E406717@alcyone.com> References: <2 DOT 2 DOT 32 DOT 19970410200021 DOT 0068da48 AT mailhost> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eyal Ben-David wrote: > > 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 ? > > In other compilers this is a non-standard extension. No, in C this is perfectly legitimate; it just means that to refer to the type, he'd have to write `enum constants'. His problem, as I posted earlier on this thread, is likely that he's compiling with C++, where DJGPP supports the new C++ standard bool datatype with keywords true and false. This is what's confusing gcc. -- Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "The future / is right there." / Bill Moyers