lib.exe

"添加"。OBJ 的模块。QLB 文件,您必须先添加此模块向您并行。LIB 文件使用库管理器 (LIB。EXE),如下:
LIB YourLib.LIB + YourMod.OBJ ;
如果模块已存在于库中,但您想要将其替换为新的模块,请使用下面的命令:
LIB YourLib.LIB-+ NewMod.OBJ ;
若要从您的媒体库中移除模块,先删除它从您。LIB 文件如下:
LIB YourLib.LIB-YourMod;
这将完全删除该模块。如果您想要保留一份。OBJ 文件中,您可以创建一个根据您从您的库使用以下删除:
LIB YourLib.LIB-* YourMod ;
您也可以组合使用 LIB 的整个库。EXE,如下所示:
LIB FirstLib.LIB + NextLib.LIB ;

这将"添加"将例程在 NextLib.LIB 到 FirstLib.LIB 文件。



However, how can you create a library from object modules? For this purpose, there is a special program called librarian. Assume that you need to create the LIB1.LIB library consisting of a single module — PROG2.OBJ. To achieve this, issue the following command:

LIB /OUT:LIB1.LIB PROG2.OBJ

If it is necessary to add another module to the library (MODUL.OBJ), simply execute the following command:

LIB LIB1.LIB MODUL.OBJ

Here are two more useful examples of using the librarian:

  • LIB/LIST LIB1.LIB — Produces the list of library modules

  • LIB/REMOVE:MODUL.OBJ LIB1.LIB — Removes the specified module, MODUL.OBJ, from the LIB1.LIB library


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值