Compiler Error C2375
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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
© 2016 Microsoft