identifier': 스토리지 클래스가 잘못되었습니다
비고
identifier 가 잘못된 스토리지 클래스로 선언되었습니다. 식별자에 대해 둘 이상의 스토리지 클래스를 지정하거나 정의가 스토리지 클래스 선언과 호환되지 않는 경우 이 오류가 발생할 수 있습니다.
이 문제를 해결하려면 식별자의 의도된 스토리지 클래스를 static 이해하거나 extern일치하도록 선언을 수정합니다.
예제
다음 예제에서는 C2071을 생성합니다.
// C2071.cpp
// compile with: /c
struct C {
extern int i; // C2071
};
struct D {
int i; // OK, no extern on an automatic
};
다음 예제에서는 C2071을 생성합니다.
// C2071_b.cpp
// compile with: /c
typedef int x(int i) { return i; } // C2071
typedef int (x)(int); // OK, no local definition in typedef