Email this to a friend
 
When using external libraries (with .lib files) and are getting linker errors like below, you are using an imcompatible import library (.lib) file.

Invalid OMF record type 0x21 (possibly COFF)

The reason for this is that your import library file was designed for MSVC. The one uses the COFF format, which is not compatible with Borland's OMF format.

To solve this, try the following and in preferred order:

Try obtaining the Borland compatible version of the import library. While difficult, this will always work.

Use the conversion tools in Borland. Read Convert MSVC import libraries for use in Borland C Builder for more info on these tools.

Try using IMPLIB to manually rea  ...

Send a link to this post to yourself or a friend.

Send to e-mail:
Your name:
Your e-mail:
Captcha:
Type the letters and numbers as shown.
/get/captcha/1732194235
Not readable? Get another.
 
Information entered is solely used for sending a one-time e-mail, and is not retained and/or passed on to a third party.