这是我的错误: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 2010-03-15 08:52:01
来源在哪里?我不能多说这件事。 – 2010-03-15 08:52:35
建议:发布一些代码,以便我们知道错误所指的是什么。这与我们问“结果是12,等式是什么”没有什么不同。 – GManNickG 2010-03-15 08:54:42