Compiler Error C2734
Visual Studio 2015
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 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
Show: