Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Problems Linking MS .lib - COFF2OMF is no help

Problems Linking MS .lib - COFF2OMF is no help

Problems Linking MS .lib - COFF2OMF is no help

I am trying to link a MS .lib using C++ Builder 4.  Error is:
[Linker Error] 'C:\TIBCO\TIBRV\LIB\LIBTIBRVCPP.LIB' contains invalid OMF record, type 0x21 (possibly COFF).

F1 help states:
"The object file is corrupt or is not an OMF object file. If linking a COFF import library, try running the utility COFF2OMF.EXE, located in the BIN directory."

I have tried to use the COFF2OMF program but it generates an empty file (only 512 bytes, no entries).

Any suggestions on how to use this lib with C++ Builder?

Rob A.

RE: Problems Linking MS .lib - COFF2OMF is no help

After spending many hours researching this problem I discovered that unfortunately in my case it can't readily (or even close to readily) be done.  I found 2 very good artiles at bcbdev.com written by Harold Howe that discuss the in's and out's of using VC++ dll's from BCB land.  In particular the article at:


was very illuminating.  Thanks Harold!


RE: Problems Linking MS .lib - COFF2OMF is no help

use the implib utility

Welcome to the Pythian Games!
Long live Godess Athena!
dArktEmplAr of Delphi Oracle

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close