Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 1996 09:23:18 -0800 (PST)
From:      Doug White <dwhite@riley-net170-164.uoregon.edu>
To:        questions@freebsd.org
Subject:   How do you declare an enum ?
Message-ID:  <Pine.BSF.3.91.960403092059.1411A-100000@riley-net170-164.uoregon.edu>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960403092059.1411A-100000>