谁能告诉我这个什么错误?

be_better 2002-07-30 09:07:40
“win32bc.obj” Contains invalid OMF record, type 0x60 .
win32bc.obj是我工程中在加的文件。
谁知道答案?
...全文
43 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
kingcaiyao 2002-07-30
  • 打赏
  • 举报
回复
贴主,你的obj的源文件到底是什么?是.c文件吗?
be_better 2002-07-30
  • 打赏
  • 举报
回复
各位,我试过了,这个东东不能转换OBJ,各位帮我出出注意!
kingcaiyao 2002-07-30
  • 打赏
  • 举报
回复
楼上的几位,coff2omf可以对obj转换吗?
jishiping 2002-07-30
  • 打赏
  • 举报
回复
Microsoft产生的库文件的格式和Borland产生的格式不同。Borland有一个工
具可以将Microsoft的动态库转成Borland格式的,不知道对obj文件是否有
效,你可以试一下。注意先备份原来的obj文件。先将win32bc.obj改名为
win32bc1.obj,然后在执行下面的命令看看:
coff2omf win32bc1.obj win32bc.obj
Bird1945 2002-07-30
  • 打赏
  • 举报
回复
用 COFF2OMF 转换,
看看帮助,
里面他的用法详细着呢.

(OutputFile). Coff2Omf.exe is located in the C++Builder BIN directory. The syntax is:

Coff2Omf [options] InputFile OutputFile

Coff2Omf converts the publicly exported symbols in the COFF import library to a corresponding set of symbols in the OMF import library. Coff2Omf enables C++Builder users to link to Microsoft and other third-party DLLs that use the COFF format. Coff2Omf does not convert .OBJ files.

Run the Coff2Omf tool on a COFF import library created for a specific DLL, and use the resulting import library to link OMF format EXEs and DLLs to the COFF DLL. The switches for Coff2Omf are:

-q - Quiet mode (converts without writing tool and copyright information to standard output)
-v - Dump of selected symbols (dumps the symbols that have been converted to standard output which can be redirected to an output file)
-d - Delete output file if empty (deletes the output file there is an error and the conversion results in an empty file)
-h, -? Display help
-r - Remove (delete) output file if empty

-lib:xx Specify options for OMF import library generation:
xx can be:

? 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)
kingcaiyao 2002-07-30
  • 打赏
  • 举报
回复
你的win32bc是个什么文件?
gfh21cn 2002-07-30
  • 打赏
  • 举报
回复
好象可以转换的
我记得在哪儿看过
在BIN目录下有个程序可以转换的



kingcaiyao 2002-07-30
  • 打赏
  • 举报
回复
文件格式冲突
win32bc.obj的格式不是 BCB支持的OMF格式。
jishiping 2002-07-30
  • 打赏
  • 举报
回复
让开发商提供Borland格式的obj给你啊。或者简单的,让开发商提供标准的
DLL给你啊,那样的话什么开发工具都可以用。
be_better 2002-07-30
  • 打赏
  • 举报
回复
我用的这个文件是开发商提供的,所以他没有提供源文件
kingcaiyao 2002-07-30
  • 打赏
  • 举报
回复
那就比较麻烦了,obj是编译后形成的目标文件,应该有源文件的,你找一找。
be_better 2002-07-30
  • 打赏
  • 举报
回复
没有源文件,就有提供的.OBJ文件而已咯.

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧