From: cziwkga AT ulcc DOT ac DOT uk (Kevin Ashley) Newsgroups: comp.os.msdos.djgpp Subject: Re: enum and djgpp Date: 8 Apr 1997 13:04:45 GMT Organization: University of London Computer Centre Lines: 16 Distribution: world Message-ID: <5idfpd$iqr@calypso.ulcc.ac.uk> References: <33494D3F DOT 606307FA AT cs DOT buffalo DOT edu> Reply-To: k DOT ashley AT ulcc DOT ac DOT uk NNTP-Posting-Host: silver-e.ulcc.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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