Compiler Error C2372

 

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

identifier' : redefinition; different types of indirection

The identifier is already defined with a different derived type.

The following sample generates C2326:

// C2372.cpp  
// compile with: /c  
extern int *fp;  
extern int fp[];   // C2372  
extern int fp2[];   // OK  

Show: