Hello boys and girls :grin:

I was searching for a straightforward description of the LIB file format,
since I have a problem here when trying to compile a C++ project which
comes with two LIB-files (maybe generated by MSVC), and my Borland
C++ compiler won't recognize them. It gives me this error:

"Bad object file '<filename.lib>' near file offset 0"

So I looked inside various LIB files that came with my BCC and the MASMv7.
So far, I could see two different types of headers. The two LIBs that came
with the C++ project have headers like this:

"!<arch>./ 952118821 0 6868"

I also found the above headers in all LIB files in the MASM package.
But all my BCC LIBs start with 0xF0 0xFD. So where is the difference
and do I have any chance to convert them to use in my Borland C++ or
maybe you know a workaround so I don't need them at all (The C++ project
accesses funcs from two existing DLL files, but the funcs are managed in classes) ?

Thanks for your help!

aweX <- :alright:
Posted on 2003-01-10 17:25:16 by aweX
Borland uses OMF, and Microsoft uses COFF for object file formats. Both do not work together. Borland has coff2omf.exe tool.
Posted on 2003-01-10 17:28:28 by comrade
Thanx very much!
That's all I needed to know.

Keep up the good work :)

aweX <-
Posted on 2003-01-11 01:39:48 by aweX