From: navid@ren.ece.neu.edu (Navid Atoofi)
Subject: SIMPLE C Question?
Date: 28 Jul 1994 18:13:02 GMT [thread overview]
Message-ID: <318sfe$hfo@chaos.dac.neu.edu> (raw)
--
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 <stdio.h>
#include <signal.h>
#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
next reply other threads:[~1994-07-28 18:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-28 18:13 Navid Atoofi [this message]
1994-07-28 21:10 ` SIMPLE C Question? Steve Huston
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