COFF2OMF.EXE, the Import Library Conversion Tool

From RAD Studio
Jump to: navigation, search

Go Up to Command-Line Utilities Index

COFF2OMF converts a COFF import library file <InputFile> to a corresponding OMF import library file <OutputFile>. COFF2OMF.EXE is located in the RAD Studio \bin directory.

Command-Line Syntax

Coff2Omf [<options>] <InputFile> <OutputFile>


Command-Line Elements

Element Description

<options>

Command-line options. They are optional.

<InputFile>

Defines a COFF import library file to be converted. This file should be specified.

<OutputFile>

Defines the name for the output OMF import library file. This file should be specified.


To display command-line help, enter:

coff2omf

COFF2OMF converts the publicly exported symbols in the COFF import library into a corresponding set of symbols in the OMF import library. COFF2OMF enables C++Builder users to link to Microsoft and other third-party DLLs that use the COFF format. COFF2OMF does not convert .OBJ files.

Run the COFF2OMF tool on a COFF import library created for a specific DLL and use the resulting import library to link OMF format EXEs and DLLs to the COFF DLL.


Command-Line Options

COFF2OMF.EXE supports the command-line options listed in the following table:

COFF2OMF Command-Line Options

Option Description

-h or -?

Displays help.

-q

Quiet mode. Converts without writing information to standard output.

-v

Dumps selected symbols. Dumps the converted symbols to standard output, which can be redirected to an output file.

-r

Removes (deletes) output file if empty. Deletes the output file if there is an error and the conversion results in an empty file.

-lib:xx

Specifies options for OMF import library generation. The xx options can be:

  • ms -- Allow entries that have MS C++ name mangling. (The default is no.)
  • st -- Normalize names instead of aliasing MS stdcall mangling.
  • ca -- Do not perform MS cdecl aliasing. (Default is to alias.)