Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 686 Bytes

compiler-error-c2373.md

File metadata and controls

34 lines (27 loc) · 686 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2373
Compiler Error C2373
11/04/2016
C2373
C2373
7a08bf0b-852d-48be-ba75-70df9f4b5951

Compiler Error C2373

'identifier' : redefinition; different type modifiers

The identifier is already defined with a different type modifier.

The following sample generates C2373:

// C2373.h
void __clrcall func( void );
const int i = 20;

And then:

// C2373.cpp
// compile with: /c
#include "C2373.h"
extern void __cdecl func( void );   // C2373
extern void __clrcall func( void );   // OK

extern int i;   // C2373
extern const int i;   // OK