gcc -O3 -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN -o example example.o -L. libz.a
/usr/bin/ld: /home/hxl/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/usr/lib/../lib/Scrt1.o: relocations in generic ELF (EM: 40)
/usr/bin/ld: /home/hxl/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/usr/lib/../lib/Scrt1.o: relocations in generic ELF (EM: 40)
/usr/bin/ld: /home/hxl/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/usr/lib/../lib/Scrt1.o: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make: *** [Makefile:289:example] 错误 1

 

posted @ 2024-07-11 13:50  灌篮如库里  阅读(2)  评论(0编辑  收藏  举报