Compiler Error C2734
'identifier' : const object must be initialized if not extern
The identifier is declared const
but not initialized or extern
.
The following sample generates C2734:
// C2734.cpp
const int j; // C2734
extern const int i; // OK, declared as extern
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