Closed g1r4ff3 closed 1 year ago
@g1r4ff3 Thanks for posting this issue, could you please install the latest sdk version and try again?
@FrankXie05 As you said, i updated windows 10 sdk to the latest and installed windows 11 sdk, the problem has been resolved! Thank you.
The failure here is due to the combination of using the "19.36.32532.0" (i.e. Visual Studio 2022 17.6) compiler with the older Windows SDK. In recent versions of DirectX Tool Kit, I enabled some additional conformance switches when using the new complier. It appears that /Zc:templateScope
is not compatible with older Windows SDKs. I'll look at updating the CMakeLists to not use that switch with SDKs prior to 22000.
Operating system
x64-windows
Compiler
MSVC 19.36.32532.0
Steps to reproduce the behavior
Failure logs
C:\Users\USER\vcpkg\buildtrees\directxtk\install-x64-windows-dbg-out.log
``` [0/42] cmd.exe /C "cd /D C:\Users\USER\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src\Shaders && "C:\Program Files\CMake\bin\cmake.exe" -E env CompileShadersOutput="C:/Users/USER/vcpkg/buildtrees/directxtk/x64-windows-dbg/Shaders/Compiled" CompileShaders.cmd > C:/Users/USER/vcpkg/buildtrees/directxtk/x64-windows-dbg/Shaders/Compiled/compileshaders.log" [2/42] C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0601 -D_WIN7_PLATFORM_UPDATE -IC:\Users\USER\vcpkg\buildtrees\directxtk\x64-windows-dbg\Shaders\Compiled -IC:\Users\USER\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src -IC:\Users\USER\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Inc -external:IC:\Users\USER\vcpkg\installed\x64-windows\include\directxmath -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -std:c++17 -MDd /Wall /GR /fp:fast /sdl /permissive- /JMC- /Zc:__cplusplus /Zc:inline /ZH:SHA_256 /Zc:preprocessor /wd5105 /Zc:lambda /Zc:templateScope /Zc:checkGwOdr /wd5262 /YcC:/Users/USER/vcpkg/buildtrees/directxtk/x64-windows-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /FpC:/Users/USER/vcpkg/buildtrees/directxtk/x64-windows-dbg/CMakeFiles/DirectXTK.dir/./cmake_pch.cxx.pch /FIC:/Users/USER/vcpkg/buildtrees/directxtk/x64-windows-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\DirectXTK.dir\cmake_pch.cxx.obj /FdCMakeFiles\DirectXTK.dir\DirectXTK.pdb /FS -c C:\Users\USER\vcpkg\buildtrees\directxtk\x64-windows-dbg\CMakeFiles\DirectXTK.dir\cmake_pch.cxx FAILED: CMakeFiles/DirectXTK.dir/cmake_pch.cxx.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0601 -D_WIN7_PLATFORM_UPDATE -IC:\Users\USER\vcpkg\buildtrees\directxtk\x64-windows-dbg\Shaders\Compiled -IC:\Users\USER\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Src -IC:\Users\USER\vcpkg\buildtrees\directxtk\src\apr2023-6ee4461477.clean\Inc -external:IC:\Users\USER\vcpkg\installed\x64-windows\include\directxmath -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -std:c++17 -MDd /Wall /GR /fp:fast /sdl /permissive- /JMC- /Zc:__cplusplus /Zc:inline /ZH:SHA_256 /Zc:preprocessor /wd5105 /Zc:lambda /Zc:templateScope /Zc:checkGwOdr /wd5262 /YcC:/Users/USER/vcpkg/buildtrees/directxtk/x64-windows-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /FpC:/Users/USER/vcpkg/buildtrees/directxtk/x64-windows-dbg/CMakeFiles/DirectXTK.dir/./cmake_pch.cxx.pch /FIC:/Users/USER/vcpkg/buildtrees/directxtk/x64-windows-dbg/CMakeFiles/DirectXTK.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\DirectXTK.dir\cmake_pch.cxx.obj /FdCMakeFiles\DirectXTK.dir\DirectXTK.pdb /FS -c C:\Users\USER\vcpkg\buildtrees\directxtk\x64-windows-dbg\CMakeFiles\DirectXTK.dir\cmake_pch.cxx C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt\wrl\implements.h(835): error C7527: 'RuntimeClassFlagsT': a template parameter name cannot be reused within its scope C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt\wrl\implements.h(831): note: see previous definition of 'RuntimeClassFlagsT' C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt\wrl\implements.h(869): note: see reference to class template instantiation 'Microsoft::WRL::Details::ImplementsHelperAdditional context
No response