contains invalid OMF record,type 0x21(possibly COFF)

implib.exe,可以将VC的DLL转译为BCB的lib

implib -af XXX.lib XXX.dll

 

1.VC,GCC obj,lib格式为coff 可相互通用
2.vc,gcc的obj,lib可通过coff2omf转成OMF格式,但VC在编译时要加/Zl选项
3.VC,GCC的typelib可通过coff2omf转成OMF格式
4.由于BCB的OMF是非标的,所以VC的link无法识别,但它可识别标准的OMF格式
5.editbin可将标准的OMF转为COFF(只能转obj,不能转lib)
6.VC,GCC,BCB的二进制查看分别为dumpbin,objdump,tdump,tdump的-C可查看COFF格式
基于上面的第4/5点,VC是无法识别BCB的LIB的
如果你的LIB是DLL生成的,VC是可以将DLL转成LIB的,具体Google下

 

COFF2OMF的用法:

COFF to OMF Converter Version 1.0.0.74 Copyright (c) 1999, 2000 Inprise Corporat
ion
Syntax:   COFF2OMF [options] InputFile OutputFile
  -h, -?  Display help
  -q      Quiet mode
  -v      Verbose mode
  -r      Remove (delete) output file if empty
  -lib:xx Specify options for OMF import library generation:
       ms - Allow entries that have MS C++ name mangling (default: no)
       st - Normalize names instead of aliasing MS stdcall mangling
       ca - Don't perform MS cdecl aliasing (default is to alias)

COFF2OMF will convert a COFF import library file (InputFile)
to the corresponding OMF type import library file (OutputFile).

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值