This documentation is archived and is not being maintained.

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: