严重错误C1905:前端和后端不兼容(必须以同一处理器为目标). [英] fatal error C1905: Front end and back end not compatible (must target same processor).

查看:1642
本文介绍了严重错误C1905:前端和后端不兼容(必须以同一处理器为目标).的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我面临在64位环境中构建COM dll的问题.

我已按照http://msdn.microsoft.com/zh-cn/library/9yb4317s%28v=VS.80%29.aspx中给出的步骤进行操作

仍然超过错误.我正在使用VS2005.

 

如果有人知道答案并对此做出答复,那将是很大的帮助!

 

解决方案

有两种非常不同的64位体系结构-Itanium('IA64')和更常见的64位体系结构AMD64('X64')体系结构.指令集不能混用.

我猜您打算为"X64"构建,但是您错误地指定了"IA64",因为这是您引用的页面上建议的第一种类型.

要解决此问题,请转到链接器属性/目标计算机",然后指定"MachineX64(/MACHINE:X64)".

此外,您还可以使用Visual Studio中的帮助功能查找错误,例如C1905.这将带您到一个页面,例如 致命错误C1905  可以提供有关该错误的更多信息. >

 


Hello,

I am facing issue to build an COM dll for 64-bit environment.

I have followed the steps given at http://msdn.microsoft.com/en-us/library/9yb4317s%28v=VS.80%29.aspx

Still getting above error. I am using VS2005.

 

If any one knows answer and replies to this that will be great help!

 

解决方案

There are two very different 64-bit architectures - the Itanium ('IA64') and the more usual AMD64 ('X64') architecture.  The instruction sets cannot be mixed.

I'm going to guess that you intend building for 'X64', but that you have specified 'IA64' in error because that is the first type suggested on the page you cite.

To fix this, go to your Linker Properties/Target Machine and specify 'MachineX64 (/MACHINE:X64)'.

Also, you can look up errors such as the C1905 using the help function in Visual Studio.  This would take you to a page such as Fatal Error C1905 which gives more information on the error.

 


这篇关于严重错误C1905:前端和后端不兼容(必须以同一处理器为目标).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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