I am getting a bunch of errors that begin with CLSID and IID when trying to debug my go code which uses zserge/webview. These errors don't seem to appear in any of the issues on github for this package.
I have tried compiling with all three available branches of the webview project (master, webview-x, and webview-cxx). I am attempting to debug using vs code on windows 7
package main
import (
"github.com/zserge/webview"
)
func main() {
// Open wikipedia in a 800x600 resizable window
webview.Open("Minimal webview example",
"https://en.m.wikipedia.org/wiki/Main_Page", 800, 600, true)
}
I expect the program to build and start when I click that green arrow. I did try to directly run go build for the webview-x branch (which seems to be the recommended branch at this point), and recieved the same as below.
Here's what i get based on each branch when attempting to debug from vs code on win 7:
master & webview-cxx
github.com/zserge/webview(.text): atexit: not defined
github.com/zserge/webview(.rdata$.refptr.CLSID_FileOpenDialog): CLSID_FileOpenDialog: not defined
github.com/zserge/webview(.rdata$.refptr.CLSID_FileSaveDialog): CLSID_FileSaveDialog: not defined
github.com/zserge/webview(.rdata$.refptr.CLSID_WebBrowser): CLSID_WebBrowser: not defined
github.com/zserge/webview(.rdata$.refptr.GUID_NULL): GUID_NULL: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IClassFactory): IID_IClassFactory: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IDispatch): IID_IDispatch: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IDocHostUIHandler): IID_IDocHostUIHandler: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IFileOpenDialog): IID_IFileOpenDialog: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IFileSaveDialog): IID_IFileSaveDialog: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IHTMLDocument2): IID_IHTMLDocument2: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IOleClientSite): IID_IOleClientSite: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IOleInPlaceActiveObject): IID_IOleInPlaceActiveObject: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IOleInPlaceObject): IID_IOleInPlaceObject: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IOleInPlaceSite): IID_IOleInPlaceSite: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IOleObject): IID_IOleObject: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IUnknown): IID_IUnknown: not defined
github.com/zserge/webview(.rdata$.refptr.IID_IWebBrowser2): IID_IWebBrowser2: not defined
github.com/zserge/webview(.text): undefined: atexit
github.com/zserge/webview(.rdata$.refptr.CLSID_FileOpenDialog): undefined: CLSID_FileOpenDialog
github.com/zserge/webview(.rdata$.refptr.CLSID_FileSaveDialog): undefined: CLSID_FileSaveDialog
webview-x
# github.com/zserge/webview
In file included from ..\github.com\zserge\webview\webview.cc:1:
..\github.com\zserge\webview\webview.h: In member function 'void webview::webview::bind(const char*, webview::webview::binding_t)':
..\github.com\zserge\webview\webview.h:1167: error: 'init' was not declared in this scope
init(js.c_str());
..\github.com\zserge\webview\webview.h:1167: note: suggested alternative: 'int'
..\github.com\zserge\webview\webview.h: In function 'void webview_init(webview_t, const char*)':
..\github.com\zserge\webview\webview.h:1239: error: 'class webview::webview' has no member named 'init'
static_cast<webview::webview *>(w)->init(js);
exit status 2
Process exiting with code: 1
So is this library broken at some point, or is my system missing something or do I have a setting wrong?