이러한 내 오류입니다 :C 컴파일 오류
error: static declaration of
doct
follows non-static declaration
error: previous declaration ofdoct
was here.
그리고 내 코드는 다음과 같습니다
int doct(int*); /* <- Second error points here */
private int doct(int *a)
{
static int a=0; /* First error points here */
a++;
*a=a;
return 0;
}
어떤 제안?
void foo(void);
static void foo(void) {}
모두에서 제거 또는 두 가지 모두에 추가하여 중, 모두 static
일치하는지 확인 : 함수 같은, 다음 정적 정의, 비 정적으로 선언 할 때
아마도 일부 소스 코드를 게시하면 도움이 될까요? – Extrakun
출처는 어디입니까? 나는 그것에 대해 많이 말할 수 없다. –
제안 : 오류가 무엇을 의미하는지 알 수 있도록 일부 코드를 게시하십시오. 이것은 우리가 "결과가 12, 방정식은 무엇입니까?"라고 묻는 것과 다르지 않습니다. – GManNickG