microsoft / cppwinrt

C++/WinRT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

winrt/Windows.Foundation.h and winrt/bash.h is not compatible with clang compiler

benjycui opened this issue · comments

Our project is compiled by clang, and we found that Windows.Foundation.h and bash.h is not compatible with clang.

image

Use the NuGet package to generate the headers instead of the pre-generated files from the SDK. These should be compatible with Clang.

(note that supporting Clang is a community effort and cppwinrt's official stance still is that it's unsupported iirc)

Yes, the version in the Windows SDK is generally quite old and should not be used. Please use the latest version available here:

https://www.nuget.org/packages/Microsoft.Windows.cppwinrt