2013-07-27 177 views
2

我有這個MakefileAR不能創建歸檔: 「文件格式無法識別」

不知怎的,(我的Linux機器),我得到

ar: jackport.o: File format not recognized 

AR --help給出

ar: supported targets: elf64-x86-64 elf32-i386 elf32-x86-64 a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex 

file jackport.o

jackport.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped 

回答

2

您需要爲AR,例如:

ar -rcs libjackpot.a jackport.o jackpot.o 
+0

指定庫的名字,我怎麼能錯過 – user877329

相關問題