1. When VS builds my application - which uses wxWebView - with wxWidgets-3.2.1 there are no problems.
Code: Select all
3.2.1
1> Creating library VCProjectDebug\AccountsManager.lib and object VCProjectDebug\AccountsManager.exp
1>AccountsManager.vcxproj -> D:\ProjetsDB\AccountsManager2\VCProjectDebug\AccountsManager.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
========== Rebuild started at 10:11 AM and took 08:40,150 minutes ==========
Code: Select all
1>webview.cpp
1>webview_vc9.vcxproj -> D:\wxWidgets-3.2.2.1\samples\webview\vc_x64_mswud\webview.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
========== Rebuild started at 11:39 AM and took 09,599 seconds ==========
Code: Select all
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: static class wxWebView * __cdecl wxWebView::New(class wxString const &)" (?New@wxWebView@@SAPEAV1@AEBVwxString@@@Z) referenced in function "public: void __cdecl GetExchangeRate::CheckExchangeRate(class wxArrayString *,class wxString,class wxArrayDouble *,bool *)" (?CheckExchangeRate@GetExchangeRate@@QEAAXPEAVwxArrayString@@VwxString@@PEAVwxArrayDouble@@PEA_N@Z) AccountsManager D:\ProjetsDB\AccountsManager2\getexchangerate.obj 1
Error LNK2001 unresolved external symbol "public: static class wxWebView * __cdecl wxWebView::New(class wxString const &)" (?New@wxWebView@@SAPEAV1@AEBVwxString@@@Z) AccountsManager D:\ProjetsDB\AccountsManager2\getsharequote.obj 1
Error LNK2001 unresolved external symbol "char const * const wxWebViewNameStr" (?wxWebViewNameStr@@3QBDB) AccountsManager D:\ProjetsDB\AccountsManager2\getexchangerate.obj 1
Error LNK2001 unresolved external symbol "char const * const wxWebViewNameStr" (?wxWebViewNameStr@@3QBDB) AccountsManager D:\ProjetsDB\AccountsManager2\getsharequote.obj 1
Error LNK2001 unresolved external symbol "char const * const wxWebViewBackendDefault" (?wxWebViewBackendDefault@@3QBDB) AccountsManager D:\ProjetsDB\AccountsManager2\getexchangerate.obj 1
Error LNK2001 unresolved external symbol "char const * const wxWebViewBackendDefault" (?wxWebViewBackendDefault@@3QBDB) AccountsManager D:\ProjetsDB\AccountsManager2\getsharequote.obj 1
Error LNK2001 unresolved external symbol "class wxEventTypeTag<class wxWebViewEvent> const wxEVT_WEBVIEW_LOADED" (?wxEVT_WEBVIEW_LOADED@@3V?$wxEventTypeTag@VwxWebViewEvent@@@@B) AccountsManager D:\ProjetsDB\AccountsManager2\getexchangerate.obj 1
Error LNK2001 unresolved external symbol "class wxEventTypeTag<class wxWebViewEvent> const wxEVT_WEBVIEW_LOADED" (?wxEVT_WEBVIEW_LOADED@@3V?$wxEventTypeTag@VwxWebViewEvent@@@@B) AccountsManager D:\ProjetsDB\AccountsManager2\getsharequote.obj 1
Code: Select all
#include "wx/webview.h"
#if wxUSE_WEBVIEW_IE
#include "wx/msw/webview_ie.h"
#endif
#if wxUSE_WEBVIEW_EDGE
#include "wx/msw/webview_edge.h"
#endif
Code: Select all
// Use wxWidget's web viewing classes
//
// Default is 1
//
// Recommended setting: 1
#define wxUSE_WEBVIEW 1
// Use the IE wxWebView backend
//
// Default is 1 on MSW
//
// Recommended setting: 1
#ifdef __WXMSW__
#define wxUSE_WEBVIEW_IE 1
#else
#define wxUSE_WEBVIEW_IE 0
#endif