#error : "wxUSE_WEBVIEW requires at least one backend"

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Jamest
In need of some credit
In need of some credit
Posts: 1
Joined: Fri Feb 09, 2018 7:21 pm

#error : "wxUSE_WEBVIEW requires at least one backend"

Post by Jamest »

I am using wxMSW-3.0.3_vc120_x64_Dev.7z and visual studio 2013. I follow the instructions. But when I built the code, I got following error:
C:\wxWidgets\3.0.3\include\wx/chkconf.h(2195): fatal error C1189: #error : "wxUSE_WEBVIEW requires at least one backend"

My simple code is as follows,

Code: Select all

#include <wx/setup.h>
#include <wx/wx.h>
class my_second :public wxApp
{
public:
	bool OnInit()
	{
		return true;
	}
};
IMPLEMENT_APP(my_second);
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: #error : "wxUSE_WEBVIEW requires at least one backend"

Post by doublemax »

I'm not sure if that's the cause for the problem, but you should not #include <wx/setup.h>
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: #error : "wxUSE_WEBVIEW requires at least one backend"

Post by ONEEYEMAN »

Hi,
For future references - look at the minimal sample provided with the library. It has all necessary code.

Thank you.
Post Reply