分页: 1 / 1

undeclared (first use this function)问题

发表于 : 2008-03-10 15:30
M2WOW
我用VIM编C语言,
代码如下
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"
int main(){
int a,b,c;
printf ("two num adds\n");
printf ("1st is?");
a=GetInteger();
printf("2nd");
b=GetInterger();
c=a+b;
printf("result is %d.\n",c);
}

然后编译出现的问题是c.c|10| error: `GetInterger' undeclared (first use this function),
教科书中写“函数GetInteger是simpio库的一部分”,
现在我已经有了simpio库和genlib,还有一个以.lib结尾的文件,不知道该怎么设置才好?