本文介绍了链接器错误:1112模块机器类型'X86'与目标机器类型'IA64'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Iam在使用XP平台上的makefile建立一个atl com dll时产生以下连结器错误。
Iam getting the following linker error while building an atl com dll which is targeted to IA64 using a makefile on an XP platform..
1>atls.lib(atlcommodule.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'IA64'
1>NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio 9.0\VC\Bin\x86_IA64\link.exe"' : return code '0x458'
Can anyone tell where I made a mistake?
推荐答案
很难说在这种情况下,来自,但通常意味着您试图链接到为您的代码是不同目标架构编译的libs。
Hard to say where in this particular case the error is coming from, but usually it means that you are trying to link to libs compiled for a different target architecture than your code is.
您说您想生成IA64代码,但是为x86(可能是libs)编译的东西
You say you want to generate IA64 code, but something is compiled for x86 (probably the libs)
这篇关于链接器错误:1112模块机器类型'X86'与目标机器类型'IA64'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!