![从库中删除文件对象](https://linux22.com/image/47021/%E4%BB%8E%E5%BA%93%E4%B8%AD%E5%88%A0%E9%99%A4%E6%96%87%E4%BB%B6%E5%AF%B9%E8%B1%A1.png)
我使用以下方法创建了一个包含 3 个文件对象的库:
ar rv arhiva.a file.o file2.o file3.o
为什么我无法从中删除文件对象?我用过
ar xv arhiva.a file.o
答案1
来自 ar(1) 手册页
d Delete modules from the archive. Specify the names of modules to be
deleted as member...; the archive is untouched if you specify no files to
delete.
If you specify the v modifier, ar lists each module as it is deleted.
你有没有尝试过 .. ?
ar dv arhiva.a file.o
- x 代表提取
- 您可以复制/粘贴行,只需制作四个白色即可缩进..