Compiler Error C2377

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2377.

identifier' : redefinition; typedef cannot be overloaded with any other symbol

A typedef identifier is redefined.

The following sample generates C2377:

// C2377.cpp  
// compile with: /c  
typedef int i;  
int i;   // C2377  
int j;   // OK  

Show: