編譯器錯誤 C2370
'identifier': 重複定義;儲存類別不同
已使用不同的儲存類別宣告的識別項。
範例
下列範例會產生 C2370:
// C2370.cpp
// compile with: /Za /c
extern int i;
static int i; // C2370
int i; // OK
下列範例會產生 C2370:
// C2370b.cpp
#define Thread __declspec( thread )
extern int tls_i;
int Thread tls_i; // C2370 declaration and the definition differ
int tls_i; // OK