This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Use of C's enum command with C166 compiler

I'm currently attempting to modify an automatic code generation
package (designed to run with MSVC/C++, WATCOM C/C++ and
Borland C) to autogenerate software compilable with the Keil
CA166 package. Of the standard files which have to be included
into the code, one of them contains the lines...

enum {
COMPLEX_INHERITED = -1,
COMPLEX_NO,
COMPLEX_YES
};

...but the C166 compiler 'seems' to be objecting to the fact that
I'm using a negative number within the enum command.

According to K & R the enum command should be declaring the
contents of the enum commands to be of type 'int' - so I can't
see what the problem is.

Can anyone shed any light on this? Where am I going wrong?


Yours (grateful in advance),


Richard Roebuck.

0