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).