Using the COFF2OMF import library conversion tool
Coff2Omf is a command line tool that converts a COFF import library file (InputFile) to a corresponding OMF import library file (OutputFile). Coff2Omf.exe is located in the C++Builder BIN directory. The syntax is:
Coff2Omf [options] InputFile OutputFile
Coff2Omf converts the publicly exported symbols in the COFF import library to 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. The switches for Coff2Omf are:
-q - Quiet mode (converts without writing tool and copyright information to standard output)
-v - Dump of selected symbols (dumps the symbols that have been converted to standard output which can be redirected to an output file)
-d - Delete output file if empty (deletes the output file there is an error and the conversion results in an empty file)
-h, -? Display help
-r - Remove (delete) output file if empty
-lib
x Specify options for OMF import library generation:
xx can be:
· ms - Allow entries that have MS C++ name mangling (default: no)
· st - Normalize names instead of aliasing MS stdcall mangling
· ca - Don't perform MS cdecl aliasing (default is to alias)
Partager