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

Controlling ILIB output

ILIB determines what output is to be produced by examining the options that you supply on the command line. The following options control ILIB output:

Option
Description
/O[UT]:filename
A static library is produced.
/GEND[EF]:filename
A module definition (.def) file is produced. The short form, /gd, may also be used.
/GENI[MPLIB]:filename
An import library/export object pair is produced. The short form, /gi, may also be used.
/L[IST]:filename
A list file is produced.

If none of the above are specified, ILIB will determine what is to be produced, as follows:

ILIB will allow you to generate a DEF file directly from a DLL. However, since the only information that a DLL has in it is the undecorated (exported) names, symbol decoration (calling convention) and type information (function or data) cannot be determined. ILIB will assume that all symbols exported from the DLL are _Optlink (the default linkage convention), unless an object file is provided that indicates otherwise.

The best way of using ILIB with a DLL is to use ILIB to create a DEF file using the /gd option. Edit the DEF file to change decorations, where appropriate, and then run the DEF file through ILIB using the /gi option to produce an import library/export object pair.

If an import library/export object pair is requested, and only a DLL is specified as input, ILIB will generate an error.


Terms of use | Feedback

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