다음을 통해 공유


컴파일러 오류 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