Compiler Error C2375

 

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

function' : redefinition; different linkage

The function is already declared with a different linkage specifier.

The following sample generates C2375:

// C2375.cpp  
// compile with: /Za /c  
extern void func( void );  
static void func( void );   // C2375  
static void func2( void );   // OK  

Show: