Comments
 
posted on June 11th 2012, at 17:24
by lunarg
By default, import libraries (.lib files) made for MSVC are not compatible with Borland C Builder and Borland Delphi. Since version 6 of Borland C++ Builder, there's a tool which can convert these files in COFF format to OMF format. The tool is called coff2omf and resides in the Bin directory of your Borland installation.

Simply run the file as follows (be sure your path etc. is correct):

coff2omf mylib.lib mylib2.lib

Then, use the mylib2.lib file you just created and add it to your project.

Notice
The coff2omf tool only works properly if the library exports plain C functions. If C++ classes or mangled function names get exported, you usually get linker errors. If this is th  ...
 
 
« April 2025»
SunMonTueWedThuFriSat
  12345
6789101112
13141516171819
20212223242526
27282930   
 
Links
 
Quote
« You only find out who is swimming naked when the tide goes out. »
Warren Buffett