{"id":2100,"date":"2020-08-26T12:13:27","date_gmt":"2020-08-26T10:13:27","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=2100"},"modified":"2020-08-26T16:47:33","modified_gmt":"2020-08-26T14:47:33","slug":"windows-10-sdk-10-0-19041-needs-some-massaging","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/2100","title":{"rendered":"Windows 10 SDK 10.0.19041 needs some massaging"},"content":{"rendered":"\n<p>In:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;unknwn.h>\n#include &lt;winrt\\base.h>\n#include &lt;winrt\\Windows.Foundation.h>\n\nint main()\n{\n}\n<\/code><\/pre>\n\n\n\n<p>Out:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>1>&#8212;&#8212; Build started: Project: CppWinrt01, Configuration: Debug x64 &#8212;&#8212;<br>1>CppWinrt01.cpp<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(983,26): error C2039: &#8216;wait_for&#8217;: is not a member of &#8216;winrt::impl&#8217;<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(103): message : see declaration of &#8216;winrt::impl&#8217;<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(985): message : see reference to class template instantiation &#8216;winrt::impl::consume_Windows_Foundation_IAsyncAction&#8217; being compiled<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(1004,26): error C2039: &#8216;wait_for&#8217;: is not a member of &#8216;winrt::impl&#8217;<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(103): message : see declaration of &#8216;winrt::impl&#8217;<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(1006): message : see reference to class template instantiation &#8216;winrt::impl::consume_Windows_Foundation_IAsyncActionWithProgress&#8217; being compiled<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(1038,26): error C2039: &#8216;wait_for&#8217;: is not a member of &#8216;winrt::impl&#8217;<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(103): message : see declaration of &#8216;winrt::impl&#8217;<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(1040): message : see reference to class template instantiation &#8216;winrt::impl::consume_Windows_Foundation_IAsyncOperationWithProgress&#8217; being compiled<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(1057,26): error C2039: &#8216;wait_for&#8217;: is not a member of &#8216;winrt::impl&#8217;<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(103): message : see declaration of &#8216;winrt::impl&#8217;<br>1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(1059): message : see reference to class template instantiation &#8216;winrt::impl::consume_Windows_Foundation_IAsyncOperation&#8217; being compiled<br>1>Done building project &#8220;CppWinrt01.vcxproj&#8221; &#8212; FAILED.<br>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<\/p><\/blockquote>\n\n\n\n<p>For the record, stepping down to 10.18362 heals the build:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"440\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-1-800x440.png\" alt=\"\" class=\"wp-image-2101\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-1-800x440.png 800w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-1-320x176.png 320w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-1-768x423.png 768w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-1-1536x846.png 1536w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-1-600x330.png 600w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-1-1040x573.png 1040w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-1.png 1729w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In: Out: 1>&#8212;&#8212; Build started: Project: CppWinrt01, Configuration: Debug x64 &#8212;&#8212;1>CppWinrt01.cpp1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(983,26): error C2039: &#8216;wait_for&#8217;: is not a member of &#8216;winrt::impl&#8217;1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(103): message : see declaration of &#8216;winrt::impl&#8217;1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(985): message : see reference to class template instantiation &#8216;winrt::impl::consume_Windows_Foundation_IAsyncAction&#8217; being compiled1>C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt\\winrt\\impl\\Windows.Foundation.0.h(1004,26): error C2039: &#8216;wait_for&#8217;: is not a&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/2100\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[588,150],"class_list":["post-2100","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-c-winrt","tag-windows"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/2100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=2100"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/2100\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=2100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=2100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=2100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}