delorie.com/archives/browse.cgi | search |
From: | bukinm AT inp DOT nsk DOT su (Michael Bukin) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: enum and djgpp |
Date: | 8 Apr 1997 17:54:57 GMT |
Organization: | BINP SD RAS |
Lines: | 12 |
Message-ID: | <5ie0ph$bpu@sky.inp.nsk.su> |
References: | <33494D3F DOT 606307FA AT cs DOT buffalo DOT edu> |
Reply-To: | bukinm AT inp DOT nsk DOT su |
NNTP-Posting-Host: | h-bukin.inp.nsk.su |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
> > 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 ? > In g++ there is `bool' type and constants `true' and `false'. I think, true or false in C++ program for gcc may appear only where constant is allowed.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |