This documentation is archived and is not being maintained.

Compiler Error C2371

Error Message

'identifier' : redefinition; different basic types

The identifier is already declared.

The following sample generates C2371:

// C2371.cpp
int main() {
   int i;
   float i;   // C2371, redefinition
   float f;   // OK
}
Show: