Mail Archives: djgpp/1997/04/08/15:02:04
In article <33494D3F DOT 606307FA AT cs DOT buffalo DOT edu>, mtc AT acsu DOT buffalo DOT edu writes:
|> 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 ?
If you are compiling as C++, I believe false and true are reserved
words, so you can't use them like this. If you compile as C, I don't
know what the problem is.
-------------------------------------
Kevin Ashley K DOT Ashley AT Ulcc DOT ac DOT uk
Development Manager http://www.ulcc.ac.uk/staff/Kevin+Ashley
University of London Computer Centre. ...ukc!ncdlab!K.Ashley
This is not a signature
- Raw text -