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:
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.