#include <yahoo2.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int main() {
int a;
a=yahoo_init("ali_rezacoder","88515141");
printf("%d",a);
return 0;
}
当我编译时:
/tmp/ccz68p3r.o: In function `main':
a.c:(.text+0x19): undefined reference to `yahoo_init'
collect2: ld returned 1 exit status
另一种编译错误的方法:
root@bt:~# gcc -o amir a.c -lyahoo2
/usr/bin/ld: cannot find -lyahoo2
collect2: ld returned 1 exit status
我该如何解决这个问题? 标题链接 http://sourceforge.net/projects/libyahoo2/files/