请教个gcc 链接.a的问题
hktl 2010-09-20 03:26:13 我有一个别人的.a文件
要用到这个文件的下面函数
int FileEntrypt("642B194C7FBF4e09849A9FD2265A57FE","21.txt","22.txt","helloc");
于是我写了个b.c
#include <stdio.h>
#include "a.h"
int main(int argc,char **argv)
{
FileEntrypt("i","k","k","ik");
}
然后我gcc -o b b.c a.a
/usr/bin/ld: warning: i386 architecture of input file `a.a(ccdrm.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `a.a(Entrypt.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `a.a(crypt.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `a.a(sha256.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `a.a(aes.o)' is incompatible with i386:x86-64 output
a.a(Entrypt.o): In function `nSetSerialNum':
Entrypt.c:(.text+0x9d): undefined reference to `__isoc99_sscanf'
collect2: ld returned 1 exit status
请问这个问题要怎么解决