File targeting 'AMD64' is not compatible with the project's target platform 'x86' 解决方法

 我在使用vs2010制作64位安装包时出现了以下问题:

File targeting 'AMD64' is not compatible with the project's target platform 'x86'

Error  File 'NGlbComm.DLL' targeting 'AMD64' is not compatible with the project's target platform 'x86'  
.........................................
我的安装包里包含 C++的x64位dll和C#的x64位dll,目的是生成一个64位的安装包,结果编译出错了,baidu了一下错误,找到的回答更让我摸不到头脑,完全没用,白耗费我半天时间(在此再次 一下baidu),后来FQ使用google,很快找到答案,解决之,真心很简单,就是一个按键F4,在弹出的工程属性栏中将TargetPlatform选项由x86改为x64即可。
 

再次编译,通过!

把国外找到的解决方案网址写出来 http://www.fewlines4biju.com/2011/09/file-targeting-amd64-is-not-compatible.html


 


 

 

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值