用Code::Blocks编译wxWebView总是过不去,哪位高手帮忙看一下!

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
haley
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 17, 2012 7:21 am

用Code::Blocks编译wxWebView总是过不去,哪位高手帮忙看一下!

Post by haley »

Code: Select all

wxWebView* m_browser = wxWebView::New(Panel1, wxID_ANY, "http://www.wxwidgets.org" );
编译时总报这种错误:
obj\Release\TAIOMain.o:TAIOMain.cpp|| undefined reference to `wxWebViewNameStr'|
obj\Release\TAIOMain.o:TAIOMain.cpp|| undefined reference to `wxWebView::New(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, wxWebViewBackend, long, wxString const&)'|
obj\Release\TAIOMain.o:TAIOMain.cpp|| undefined reference to `wxWebViewNameStr'|
obj\Release\TAIOMain.o:TAIOMain.cpp|| undefined reference to `wxWebView::New(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, wxWebViewBackend, long, wxString const&)'|
||=== Build finished: 4 errors, 0 warnings ===|
samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 340
Joined: Mon Oct 06, 2008 12:55 pm

Re: 用Code::Blocks编译wxWebView总是过不去,哪位高手帮忙看一下!

Post by samsam598 »

wx2.9.3 release版可以顺利编译。打开wxUSE_WEBVIEW 开关即可。
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
VS Community 2019
msys2-mingw13.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2.4 Unicode Mono Static gcc static build
ghbjimmy
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Apr 19, 2016 12:20 am

Re: 用Code::Blocks编译wxWebView总是过不去,哪位高手帮忙看一下!

Post by ghbjimmy »

我用的最新的3.1,一开始也是遇到问题,已经有了解决方案,方法如下:
http://trac.wxwidgets.org/ticket/16329#no1
Post Reply