www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/16/07:15:38

Xref: news2.mv.net comp.os.msdos.djgpp:2766
Newsgroups: comp.os.msdos.djgpp
From: kurt AT pmafire DOT inel DOT gov (Kurt Fielding)
Subject: Enum Definitions
Message-ID: <1996Apr15.215610.13409@pmafire.inel.gov>
Date: Mon, 15 Apr 96 21:56:10 GMT
Organization: Lockheed Idaho Technologies, Inc.
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019