ubuntu 11.10 ,64位版的,我之前编译链接的库是Libnids-1.20,出现上面这个问题,后来换成libnids-1.23,这个问题没了。可是用开发板给的arm-linux-gcc编译生成了libnids.a,然后编译别的一个c文件,printall.c,链接这个libnids.a静态库的时候说:
printall.c:In function 'main':
printall.c:117:warning :incompatible implicit declaration of built-in function 'exit'
libnids.a :could not read symbols: file format not recognized
collect2:ld returned 1 exit status