Sender: crough45 AT amc DOT de Date: Thu, 10 Apr 1997 15:41:09 +0100 From: Chris Croughton Mime-Version: 1.0 To: kania AT ci3ux DOT ci DOT pwr DOT wroc DOT pl Cc: djgpp AT delorie DOT com Subject: Re: enum and djgpp Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <97Apr10.163824gmt+0100.21894@internet01.amc.de> Piotr Kania wrote: > Im my opionion you must compile it as c++ (with extension .cpp) > becouse enum works only with c++ Sorry, totally wrong. The extension for C++ with the GNU and DJGPP compilers is .cc, .cxx or .C (note the capital C), .cpp isn't recognised (Borland C++ does require .cpp). Alternatively you can specify the option -x c++, but that then compiles all following files as C++. The enum declaration has been in C for many years; the ANSI specification was ratified in 1989 (1990 for the ISO spec.) but enum has been in most compilers for a lot longer than that. Chris