lib.exe

来源:互联网 发布:万兆mac芯片 编辑:程序博客网 时间:2024/05/19 03:19
"添加"。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


原创粉丝点击