From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,919ebc8bbcc66203,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-28 11:47:47 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!noc.near.net!chaos.dac.neu.edu!ren.ece.neu.edu!navid From: navid@ren.ece.neu.edu (Navid Atoofi) Newsgroups: comp.unix.osf.osf1 Subject: SIMPLE C Question? Date: 28 Jul 1994 18:13:02 GMT Organization: OrgFreeware Distribution: world Message-ID: <318sfe$hfo@chaos.dac.neu.edu> Reply-To: navid@ren.ece.neu.edu (Navid Atoofi) NNTP-Posting-Host: ren.coe.neu.edu -- Navid Atoofi "ARYANAM KHASHATRAM" System CAD engineer Northeastern University ------------------------------- I do have a problem with enum, I try to complie a program that start like this #include #include #define procedure void #define and && #define or || #define not ! typedef enum { FALSE, TRUE} Boolean; <-------- I am keep getting the following error /usr/lib/cmplrs/cc/cfe: Error: export.c, line 24: Syntax Error typedef enum { 0, 1} Boolean; ---------------^ ------------------------------------------------------------ Any recomendation? enum Boolean { TRUE, FALSE } ; will encounter the same error if I change TRUE and FALSE to some bogus name it will compile, but ?? as soon as I define the bogus variable to 0 and 1 I will get the same error. I tried it with gcc and cc. Thank you