C++ packing a typdef enum
- by Sagar
typedef enum BeNeLux
{
BELGIUM,
NETHERLANDS,
LUXEMBURG
} _PACKAGE_ BeNeLux;
When I try to compile this with C++ Compiler, I am getting errors, but it seems to work fine with a C compiler. So here's the question. Is it possible to pack an enum in C++, or can someone see why I would get the error?
The error is:
"semicolon missing after declaration of BeNeLux". I know, after checking and rechecking, that there definitely is a semicolon there, and in any places required in the rest of the code.