This error message appears in Visual C++ when an enum or union identifier has been used as type definition before. Ex;
struct someStruct {
int a;
int b;
};
int main() {
enum someStruct; //This line will generate C2011
}
Change the identifier to another value so that the type definition and identifier will not be mixed by the compiler.
struct someStruct {
int a;
int b;
};
int main() {
enum e;
}