From: huston@icecub.ako.dec.com (Steve Huston)
Subject: Re: SIMPLE C Question?
Date: 28 Jul 1994 21:10:55 GMT [thread overview]
Message-ID: <3196sv$1t9@nntpd.lkg.dec.com> (raw)
In-Reply-To: 318sfe$hfo@chaos.dac.neu.edu
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
prev parent reply other threads:[~1994-07-28 21:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-28 18:13 SIMPLE C Question? Navid Atoofi
1994-07-28 21:10 ` Steve Huston [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox