RAD Studio
ContentsIndex
PreviousUpNext
COFF2OMF.EXE, the Import Library Conversion Tool

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

Coff2Omf [<options>] InputFile OutputFile  

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 Option 
Description 
-q  
Quiet mode. Converts without writing tool and copyright information to standard output.  
-v  
Dumps selected symbols. Dumps the converted symbols to standard output, which can be redirected to an output file.  
-h or -?  
Displays help.  
-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 — Don't perform MS cdecl aliasing. Default is to alias.
 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!