Mail Archives: djgpp/1997/04/11/22:10:29
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
- Raw text -