www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/26/23:16:17

From: Erik Max Francis <max AT alcyone DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019