paly 发表于 2007-5-9 19:06:17

帮忙看看........

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int flip(int);

void percentages(int,int);
int main()
{
int a=100;
int b;
b=flip(a);
percentages(a,b);

return 0;
}


运行时出错........
gcc zzz.c -o zzz
/tmp/ccyWUk6q.o(.text+0x2a): In function `main':
: undefined reference to `flip'
/tmp/ccyWUk6q.o(.text+0x3e): In function `main':
: undefined reference to `percentages'
collect2: ld returned 1 exit status

Mikeandmore 发表于 2007-5-11 09:31:42

....真是看不懂你在干什么。。。
flip, percetages的implements在哪。。。
页: [1]
查看完整版本: 帮忙看看........