Export (0) Print
Expand All
Expand Minimize

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

Community Additions

ADD
Show:
© 2014 Microsoft