編譯器錯誤 C2734

'identifier' : 如果不是 extern,const 物件必須初始化

宣告識別項 (Identifier) 為 const,但未初始化或宣告為 extern。

下列範例會產生 C2734:

// C2734.cpp
const int j;   // C2734
extern const int i;   // OK, declared as extern