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

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

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

Postby haley » Tue Jan 17, 2012 7:38 am

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: 324
Joined: Mon Oct 06, 2008 12:55 pm

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

Postby samsam598 » Thu Jan 19, 2012 10:11 am

wx2.9.3 release版可以顺利编译。打开wxUSE_WEBVIEW 开关即可。
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared 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总是过不去,哪位高手帮忙看一下!

Postby ghbjimmy » Thu Apr 28, 2016 6:39 am

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


Return to “wxWidgets Development (Chinese)”

Who is online

Users browsing this forum: No registered users and 2 guests