From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: enum doesn't work? Date: Tue, 26 May 1998 19:50:40 -0700 Organization: Alcyone Systems Lines: 20 Message-ID: <356B7F7F.575BAAC4@alcyone.com> References: <356B058B DOT 463C5F37 AT est DOT fib DOT upc DOT es> NNTP-Posting-Host: kamali.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Victor Viudez Gonzalez wrote: > Why doesn't work something like this? > > typedef enum BOOL{false,true}bool; > > It says Error before 'typedef', but before 'typedef' there are > nothing! Are you compiling in C++, and are there any typedefs following this line? In C++, bool, true, and false are reserved keywords, and so this typedef is illegal. -- Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com Alcyone Systems / http://www.alcyone.com/max/ San Jose, California, United States / icbm:+37.20.07/-121.53.38 \ "Since when can wounded eyes see / If we weren't who we were" / Joi