问题描述
Hello
是否有任何方法可以将COFF库(lib文件)转换为OMF库以便与C ++ Builder6一起使用?这个coff不只是导入库,它conatians一些代码。
当我尝试使用borland的coff2omf.exe转换它,我从15KB文件获取1KB文件。
HelloIs there any way to convert COFF library (lib file) to OMF library for using with C++Builder6 ? This coff is not just import library, it conatians some code.When I try to convert it using borland's coff2omf.exe, I get 1KB file from 15KB file.
推荐答案
相当典型的OMF对象文件是比等效的COFF对象小,所以你得到的可能是有效的。
It's fairly typical for an OMF object file to be a lot smaller than an equivalent COFF object, so what you're getting may well be valid.
如果你发现它真的不是,你可以打破lib文件为单独的对象文件,反汇编对象文件,重新组装到OMF对象文件,并把它们放在一个OMF lib文件。
If you find that it's really not, you can probably break the lib file into individual object files, disassemble the object files, re-assemble them to OMF object files, and put those together into an OMF lib file.
这篇关于将COFF lib文件转换为OMF格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!