c x64 dll [英] c x64 dll

查看:78
本文介绍了c x64 dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将用C编写的库编译为x64 dll。我可以复制到32位dll罚款,但当我尝试编译为64位时,我收到此错误:致命错误LNK1123:转换为COFF期间失败:文件无效或损坏。我是Windows $开发的新手。任何帮助将不胜感激:)

Hi, I am trying to compile a library written in C to a x64 dll. I can copile to a 32 bit dll fine but when I tried compiling to a 64 bit I got this error: fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt. i am new to developing in windows. Any help would be greatly appreciated :)

推荐答案

在我看来,链接器正在尝试将32位输出文件(例如obj文件)与64位链接文件。在32位和64位版本之间进行清理或重建,并注意尝试链接任何第三方32位.obj文件,因为这不起作用。
looks to me that the linker is trying to link a 32bit output file, such as an obj file, with the 64 bit files. Do a clean or a rebuild between 32bit and 64bit builds and beware if trying to link in any 3rd party 32bit .obj files as this will not work.


这篇关于c x64 dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆