Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
I'm trying to use a wxWebView control to display the license for the program I'm writing. I'm getting the following compilation errors. I'm using wxWidgets 3.1.0 with Visual Studio 2017 on Windows 10.
Did you add wxmsw31ud_webview.lib to the input libraries? (The library name could be slightly different based on your configurations, but you should get the idea).
I added the required library as an explicit linker input and it compiled without any errors, but I was expecting the linker to search all the libraries in the library directories.
fishnet37222 wrote: was expecting the linker to search all the libraries in the library directories.
That is not how a C++ linker works.
Anyway, you are using MSVC so you can avoid listing required libraries by hand by including an MSVC only header file:
WXWIN/docs/msw/install.txt wrote:
Microsoft Visual C++ users can simplify the linker setup by prepending
"$(WXWIN)\include\msvc" to the include path (it must come before the
"$(WXWIN)\include" part!) and omitting the last step: the required libraries
will be linked in automatically using the "#pragma comment(lib)" feature of
this compiler.