Visual Studio 2017 c ++-错误的项目输出'针对'AMD64'的主要输出与项目的目标平台'x86'不兼容

时间:2019-03-04 15:15:45

标签: c++ visual-studio

我正在尝试将当前正在运行的项目移植到另一台计算机上,两者都使用最新的Visual Studio版本,并且该项目使用opencv库。

我有两个项目:

  • 项目App,可以正常运行,我可以对其进行测试 在调试和发布模式下。
  • 设置项目,以部署应用程序(其他都可以正常运行 机)。

目标平台是x64,配置管理器设置是:

enter image description here

当我尝试建立安装项目时,出现错误:

ERROR: File 'Apptest.exe' of project output 'Primary Output from Apptest(Active)' targeting 'AMD64' is not compatible with the project's target platform 'x86'

如果我的项目明确设置为以64位为目标,那么任何人都知道或有任何线索为什么我会收到此错误?

谢谢。

0 个答案:

没有答案