【问题标题】:Visual Studio trying to use 64bit C runtime lib when compiling for 32bitVisual Studio 在编译 32 位时尝试使用 64 位 C 运行时库
【发布时间】:2012-08-08 07:45:30
【问题描述】:

当我尝试编译我的程序时,我收到以下错误:

Error   226 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'   C:\dev\VAVTC\AMI-Intel\AVTC\2012_06_DemoCode\ElansMatting\msvcprt.lib(MSVCP100.dll)

Linker>Advanced 下的目标机器设置为 MachineX86,所以我很迷茫。

任何想法将不胜感激。 :)

【问题讨论】:

    标签: c++ visual-studio-2010 linker


    【解决方案1】:

    所以我想通了。 :P

    出于某种原因,在项目属性>VC++ 目录库目录已设置为 Amd64 库而不是 32 位库

    【讨论】:

      猜你喜欢
      • 2017-08-03
      • 2018-09-20
      • 2013-03-20
      • 1970-01-01
      • 1970-01-01
      • 2011-08-14
      • 2011-10-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多