Mail Archives: djgpp/1997/04/10/10:54:59
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
- Raw text -