Mail Archives: djgpp/1996/04/17/23:58:10
In article <1996Apr15 DOT 215610 DOT 13409 AT pmafire DOT inel DOT gov>, kurt AT pmafire DOT inel DOT gov (Kurt Fielding) writes:
>> I'm having trouble defining enum types in v2 of djgpp. The following
>> statement will not work:
>>
>> enum Boolean { false, true };
>>
>> I get the message: ... parse error before `false'.
>>
>> The "info" documentation tends to make me believe that enum types are possible
>> but I can't find the right combination. Any body have a clue what is going on?
>> Something this simple shouldn't be such a problem!
>>
>> Thanks for your help....
>>
>> Kurt
Hello Kurt,
well, the use of enum's is no problem, i think.
One of the words you used, 'Boolean' or 'false' is a reserved word
with c++, so the compiler cannot understand it!
Norbert
sensen AT uni-paderborn DOT de
- Raw text -