From owner-freebsd-questions Wed Apr 3 09:22:37 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA08958 for questions-outgoing; Wed, 3 Apr 1996 09:22:37 -0800 (PST) Received: from riley-net170-164.uoregon.edu (riley-net170-164.uoregon.edu [128.223.170.164]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA08953 for ; Wed, 3 Apr 1996 09:22:35 -0800 (PST) Received: (from dwhite@localhost) by riley-net170-164.uoregon.edu (8.6.12/8.6.12) id JAA01416; Wed, 3 Apr 1996 09:23:18 -0800 Date: Wed, 3 Apr 1996 09:23:18 -0800 (PST) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: questions@freebsd.org Subject: How do you declare an enum ? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk hello! What is the gcc way of declaring an enum? I have a line like this in a .h file: enum boolean {false, true}; When I try to compile this, gcc (and g++) barfs on it, saying that there is a parse error before 'false'. Is there a different way to declare an enum type? Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major