www.delorie.com/archives/browse.cgi | search |
Message-Id: | <2.2.32.19970410200021.0068da48@mailhost> |
Mime-Version: | 1.0 |
Date: | Thu, 10 Apr 1997 18:00:21 -0200 |
To: | djgpp AT delorie DOT com |
From: | Eyal Ben-David <eyalb AT aks DOT com> |
Subject: | Re: enum and djgpp |
> 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. In C you should write: typedef enum { false = 0, true = 1 } constants; Note that in C++ the two forms are the acceptable and identical. Eyal.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |