Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in Windows Implementation library resource.h #108

Open
iambar opened this issue Oct 10, 2021 · 4 comments
Open

Build error in Windows Implementation library resource.h #108

iambar opened this issue Oct 10, 2021 · 4 comments

Comments

@iambar
Copy link

iambar commented Oct 10, 2021

Hi,

I'm getting the following build error when trying to build WebView2GettingStarted (Win32):
1>HelloWebView.cpp
1>c:\projects\webview2samples-master\gettingstartedguides\win32_gettingstarted\packages\microsoft.windows.implementationlibrary.1.0.210930.1\include\wil\resource.h(2543): error C2440: 'specialization': cannot convert from 'void (__cdecl *)(HANDLE) noexcept' to 'unknown-type'
1>c:\projects\webview2samples-master\gettingstartedguides\win32_gettingstarted\packages\microsoft.windows.implementationlibrary.1.0.210930.1\include\wil\resource.h(2543): note: Context does not allow for disambiguation of overloaded function

I'm using VS2017 15.9.39
Windows SDK version 10.0.17763.0
Platform Toolset v141 (I changed it from v142 for VS2017).
Release/x64

I installed the latest versions of WIL and WebView2 using the NuGet package manager.

Is there something else missing in order to build on VS2017?

@gzg0612
Copy link

gzg0612 commented Jul 30, 2022

I also have the same problem hao to fix it

@Serif-NNR
Copy link

@iambar and @gzg0612 hello,

I use VS Enterprise 2019 16.11.10 and got an error similar with this you expressed. In my case, I have just altered the debug architecture from Arm to x64 by using Configuration Manager in the left side of Start button. Currently everything seems to work exceptedly.

@icnocop
Copy link

icnocop commented Mar 24, 2023

I'm getting the following build error when trying to build WebView2GettingStarted (Win32):
1>HelloWebView.cpp
1>c:\projects\webview2samples-master\gettingstartedguides\win32_gettingstarted\packages\microsoft.windows.implementationlibrary.1.0.210930.1\include\wil\resource.h(2543): error C2440: 'specialization': cannot convert from 'void (__cdecl *)(HANDLE) noexcept' to 'unknown-type'
1>c:\projects\webview2samples-master\gettingstartedguides\win32_gettingstarted\packages\microsoft.windows.implementationlibrary.1.0.210930.1\include\wil\resource.h(2543): note: Context does not allow for disambiguation of overloaded function

See microsoft/wil#25 and microsoft/wil#272 and microsoft/wil#302

@icnocop
Copy link

icnocop commented Mar 24, 2023

As a work-around, downgrade the NuGet package Microsoft.Windows.ImplementationLibrary to 1.0.210803.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants