Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Add/Replace

Read syntax diagramSkip visual syntax diagram>>-filename----------------------------------------------------><
 

The default action, when filename is specified on the command line without an associated object, is to add it to the library. If filename already exists in the library, it will be replaced.

Adding an Object Module to a Library

Type the name of the object file to be added on the command line. The .obj extension may be omitted.

ILIB uses the base name of the object file as the name of the object module in the library. For example, if the object file cursor.obj is added to a library file, the name of the corresponding object module is cursor.

Object modules are always added to the end of a library file.

Replacing an Object Module in a Library

Type the name of the object module to be replaced on the command line. The .obj extension may be omitted.

If the object module already exists in the library, ILIB will replace it with the new copy.

Combining Two Libraries

Specify the name of the library file to be added, including the .lib extension, on the command line. A copy of the contents of that library is added to the library file being modified. If both libraries contain a module with the same name, ILIB generates a warning message, and uses only the first module with that name.

ILIB adds the modules of the library to the end of the library being changed. The added library still exists as an independent library because ILIB copies the modules without deleting them.

Examples

The following command adds the file sample.obj to the library mylib.lib. If sample.obj already exists in the library mylib.lib, ILIB will replace it.

ilib /out:mylib.lib mylib.lib sample.obj

This example adds the contents of the library mylib.lib to the library newlib.lib. The library mylib.lib is unchanged after this command is executed.

ilib /out:newlib.lib newlib.lib mylib.lib

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)