Windows 机器类型';x64和x27;与目标机器类型'冲突;X86和x27;
因此,当我为配置选择调试和Win32时,会出现此错误,但软件本身带有以下设置:Windows 机器类型';x64和x27;与目标机器类型'冲突;X86和x27;,windows,visual-studio,winapi,visual-c++,64-bit,Windows,Visual Studio,Winapi,Visual C++,64 Bit,因此,当我为配置选择调试和Win32时,会出现此错误,但软件本身带有以下设置: Severity Code Description Project File Line Category Source Suppression State Tool Error LNK1112 module machine type 'x64' conflicts with target machine type 'X86' renderdoc C:\Users\mona\playing-for-data\ren
Severity Code Description Project File Line Category Source Suppression State Tool
Error LNK1112 module machine type 'x64' conflicts with target machine type 'X86' renderdoc
C:\Users\mona\playing-for-data\renderdoc\renderdoc\IlmImf.lib(IlmImf.dll) 1 fatal Build
当我使用x64构建并调试时,会出现以下错误:
Severity Code Description Project File Line Category Source Suppression State Tool
Error LNK1181 cannot open input file 'C:\Users\mona\playing-for-data\renderdoc\renderdoc\driver\shaders\spirv\x64\Debug\PpTokens.obj' renderdoc C:\Users\mona\playing-for-data\renderdoc\renderdoc\LINK 1 fatal Build
我不知道该如何解决这个问题。我的假设是Win32 Debug也应该在64位机器上工作
以下是原始代码:
使用x64 Visual Studio构建OpenEXR会导致使用CMake吗?
我的解决方案是使用带有x64选项的Cmake制作素材,并使用x64版本在VS2015中构建它们。在构建x86 exe时尝试使用x64
IlmImf.lib
。您需要搜索所有IlmImf.lib
文件-其中是x64和x86 lib版本。您需要在构建x86 exe中使用x86版本的IlmImf.lib