把x86的项目配置为x64,结果总是报“Error    4    error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'  ”


出现此问题一般是依赖库文件为x86导致。项目右键属性--Configration Properties--Linker--Input,查看Additional Dependencies中依赖库。

但发现这里库在x64下应用没有问题。其它配置也没有发现什么异常,后来经过折磨的细找,终于发现了异常项目:项目右键属性--Configration Properties--Linker--Command Line. 如下图所示,Additional Options框中竟然有: “/machine:X86 setargv ”。删除这段文字,确定后编译,OK。​


error LNK1112: module machine type 'x64' conflicts



相关文章:

  • 2022-12-23
  • 2021-06-28
  • 2021-10-19
  • 2021-11-15
  • 2021-12-30
  • 2021-07-05
  • 2021-12-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
相关资源
相似解决方案