www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/11/04:15:55

From: av568 AT rgfn DOT epcc DOT edu (Beautiful Savior Lutheran Church)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: enum and djgpp
Date: 11 Apr 1997 04:21:22 GMT
Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX
Lines: 23
Message-ID: <5ike82$6ht@news.epcc.edu>
References: <97Apr10.163824gmt+0100 DOT 21894 AT internet01 DOT amc DOT de>
NNTP-Posting-Host: rgfn.epcc.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Chris Croughton (crough45 AT amc DOT de) wrote:

> 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++.

Sorry, *you're* wrong too. gcc *does* support the .cpp extension, as 
noted in 'info gcc invoking overall'.

> 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.

--
Beautiful Savior Evangelical Lutheran Church - av568 AT rgfn DOT epcc DOT edu
We have what you need-- A Savior!

- Raw text -


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