我不确定 ar 支持除第一个选项以外的任何其他选项。尝试
ar
ar -rs libfact.a fact.o
要不就
ar rs libfact.a fact.o
提醒你,我不知道为什么跑步 ranlib 虽然不起作用。
ranlib