Compiler Error C2374

 

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 C2374.

identifier' : redefinition; multiple initialization

The identifier is initialized more than once.

The following sample generates C2374:

// C2374.cpp  
// compile with: /c  
int i = 0;  
int i = 1;   // C2374  
int j = 1;   // OK  

Show: