Udostępnij przez


Błąd kompilatora C2370

"identyfikator" : ponowne zdefiniowanie; inna klasa magazynu

Uwagi

Identyfikator jest już zadeklarowany przy użyciu innej klasy magazynu.

Przykłady

Poniższy przykład generuje C2370:

// C2370.cpp
// compile with: /Za /c
extern int i;
static int i;   // C2370
int i;   // OK

Poniższy przykład generuje 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