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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for