Mail Archives: djgpp/1997/04/11/04:15:55
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 -