Maintaining Libraries (OS/2, Windows)

To create a static library or DLL, you should build with the a target file of type .lib or .dll respectively. You can create a library from the IDE or by using the vacbld command. However you cannot specify all the library maintenance tasks you may want to do, in your configuration file. For that reason, VisualAge C++ provides a separate command line tool for managing libraries.

The library manager is the ilib utility, and it is very similar to the tool of the same name that was available in VisualAge for C++ for Windows version 3.5 and IBM C and C++ Compilers 3.6.

You can use the ilib utility to perform the tasks listed below. The first three tasks may be useful for maintaining static libraries: The last two tasks, creating module definition (.def) and export object (.exp) files, are available for historical reasons, and may be helpful if you are migrating DLLs from earlier products. You can use ilib to:

Import libraries are created automatically by VisualAge C++ when you build a DLL.
In VisualAge for C++ for Windows version 3.5 and IBM C and C++ Compilers 3.6, creating an import library was your responsibility and you used ilib for that purpose. You should no longer need to use ilib to create import libraries.

In VisualAge for C++ for Windows version 3.5 and IBM C and C++ Compilers 3.6, you had to create and specify module definition(.def) files and export (.exp) files when working with DLLs. These files specified the symbols exported from a DLL when building a DLL, or symbols imported from a DLL when building a module that uses a DLL without an import library. VisualAge C++ builds create the equivalent of these files implicitly for internal use during the build. You no longer have to bother with .def and .exp files.



Static and Dynamic Link Libraries
.def and .exp Files are Obsolete


Build Dynamic Link Libraries
Build Modules That Use DLLs
Export Symbols from a DLL
Build Static Libraries
Create Module Definition Files
Create an Import Library and Export Object
List the Contents of a Static Library
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
ilib Command Options