Export (0) Print
Expand All
Expand Minimize
8 out of 72 rated this helpful - Rate this topic

Compiler Error C2011

Error Message

'identifier' : 'type' type redefinition

The identifier was already defined as type. You may also get C2011 if you import a type library more than once into the same file.

The following sample generates C2011:

// C2011.cpp
// compile with: /c
struct S;
union S;   // C2011
union S2;   // OK
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.