List the Contents of a Static Library (OS/2, Windows)

You can use the ilib command to get a list of the contents of a static library. Perform the following steps:

  1. In the VisualAge C++ command line window, open the directory in which the library resides.
  2. Issue the ilib command. Use the /list option. If you do not specify the name of the listing file, it is given the same base name as the input library and the extension .lst. The short form /l is equivalent to /list. Also list the input library on the command line.

For example, the following command creates listing file mylib.lst for the static library mylib.lib.

ilib /list:mylib.lib

You can perform several tasks in one run of ilib. For example the following command creates a new library pets.lib that contains all object modules from an existing library zoo.lib except the module named snake. A list file pets.lst is also output.

ilib /out:pets.lib /list:pets.lst zoo.lib /remove:snake

Example Listing Produced by the ilib Command



Static and Dynamic Link Libraries
Maintaining Libraries


Combine Static Libraries
Add an Object Module to a Static Library
Replace an Object Module in a Static Library
Extract an Object Module from a Static Library
Remove an Object Module from a Static Library


The ilib Command