I have a link problem for which I have not found the reason. Here is the environment:
My application contains wxDialog object GetShareQuote with the function CheckShareQuote():
Code: Select all
#include "wx/webview.h"
#if defined(__WXOSX__)
#include "wx/osx/webview_webkit.h"
#elif defined(__WXGTK__)
#include "wx/gtk/webview_webkit.h"
#elif defined(__WXMSW__)
#include "wx/msw/webview_ie.h"
#endif
GetShareQuote(wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style)
{
...
bool CheckShareQuote(wxWindow* pWindow, wxArrayString* Titres, wxArrayString* CodesIsin,
wxArrayString* Quotes, wxArrayString* QuoteDates, wxArrayDouble* DQuotes, wxString* ErrMessage);
}
// Constructor:
GetShareQuote( wxWindow* parent, wxWindowID id = SYMBOL_GetShareQuote_IDNAME,
const wxString& caption = SYMBOL_GetShareQuote_TITLE,
const wxPoint& pos = SYMBOL_GetShareQuote_POSITION,
const wxSize& size = SYMBOL_GetShareQuote_SIZE,
long style = SYMBOL_GetShareQuote_STYLE
);
Code: Select all
GSQ = new GetShareQuote(this);
GSQ->CheckShareQuote(this, m_data.Titres, m_data.Isins, m_data.Quotes, m_data.QuoteDates, m_data.DQuotes, &errMessage);
This architecture resolves the asynchronous behavior of wxWebView by the use of timers. It compiled and linked with no errors with an earlier trunk (25/11) and that version works as expected.
With today's trunk, I have a problem which I do not know how to solve:
CheckShareQuote() contains the expression (copied from the webview sample)
m_browser = wxWebView::New(pWindow, wxID_ANY, url);
(m_browser is wxWebView*, pWindow is wxWindow* of the caller, url is a const wxString)
This statement generates the link errors below. Strangely (for me) no errors are raised with sample of today's trunk.
All the errors are 'external symbol not resolved':
1>getsharequote.obj : error LNK2001: symbole externe non résolu "public: static class wxWebView * __cdecl wxWebView::New(class wxWindow *,int,class wxString const &,class wxPoint const &,class wxSize const &,class wxString const &,long,class wxString const &)" (?New@wxWebView@@SAPAV1@PAVwxWindow@@HABVwxString@@ABVwxPoint@@ABVwxSize@@1J1@Z)
1>getsharequote.obj : error LNK2001: symbole externe non résolu "char const * const wxWebViewBackendDefault" (?wxWebViewBackendDefault@@3QBDB)
1>getsharequote.obj : error LNK2001: symbole externe non résolu "char const * const wxWebViewNameStr" (?wxWebViewNameStr@@3QBDB)