From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,919ebc8bbcc66203 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-28 14:22:40 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!charnel.ecst.csuchico.edu!olivea!decwrl!pa.dec.com!nntpd.lkg.dec.com!icecub.ako.dec.com!huston From: huston@icecub.ako.dec.com (Steve Huston) Newsgroups: comp.unix.osf.osf1 Subject: Re: SIMPLE C Question? Date: 28 Jul 1994 21:10:55 GMT Organization: CompuCraft Distribution: world Message-ID: <3196sv$1t9@nntpd.lkg.dec.com> References: <318sfe$hfo@chaos.dac.neu.edu> Reply-To: huston@icecub.ako.dec.com NNTP-Posting-Host: icecub.ako.dec.com In article <318sfe$hfo@chaos.dac.neu.edu>, navid@ren.ece.neu.edu (Navid Atoofi) writes: >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; > ---------------^ This is because TRUE and FALSE are already #define'd before you get to that point in your program (they're defined somewhere under stdio, I think). You could: 1. #undef TRUE #undef FALSE 2. Pick new tags that aren't already #define'd. -- Steve Huston CompuCraft CompuServe: 72133,2372 61 Nadeau Drive Internet: 72133.2372@CompuServe.COM Wrentham, MA 02093-1618 huston@icecub.ako.dec.com (508) 384-5770