Re: cannot allocate an object of abstract type
Hi,
As WebCore::ChromeClient contains pure virtual function, it must override all the pure virtual functions.
You can provide default definition as of now for compilation as provided for other functions:
For example:
bool ChromeClient::hasOpenedPopup() const
{
notImplemented();
return false;
}
I believe that it will resolve the compilation error.
Thanks,
Prince Goyal
On Tue, Jul 17, 2012 at 12:30 AM,
<webkit-help-request <at> lists.webkit.org> wrote:
Send webkit-help mailing list submissions to
webkit-help <at> lists.webkit.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.webkit.org/mailman/listinfo/webkit-help
or, via email, send a message with subject or body 'help' to
webkit-help-request-L0Ma0HqZfWZ4ORXrvDxdwA@public.gmane.org
You can reach the person managing the list at
webkit-help-owner-L0Ma0HqZfWZ4ORXrvDxdwA@public.gmane.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of webkit-help digest..."
Today's Topics:
1. cannot allocate an object of abstract type
?WebKit::ChromeClient? (rahul tyagi)
----------------------------------------------------------------------
Message: 1
Date: Mon, 16 Jul 2012 10:52:26 +0530
From: rahul tyagi <rahultyagi.ait-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: webkit-help-L0Ma0HqZfWZdcFiYlOsKuw@public.gmane.orgt.org
Subject: [webkit-help] cannot allocate an object of abstract type
?WebKit::ChromeClient?
Message-ID:
<CAEx5rF9B8Qe7LjFYxtSj9DRTqNewp=GcDqMinb24juXcHPpPgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Content-Type: text/plain; charset="windows-1252"
Hi,
I am using nightly build "r121554" on Ubuntu 12.04. While compilation
in release mode i am getting the following error :
Source/WebKit/gtk/webkit/webkitwebview.cpp: In function ?void
webkit_web_view_init(WebKitWebView*)?:
Source/WebKit/gtk/webkit/webkitwebview.cpp:3609:64: error: cannot
allocate an object of abstract type ?WebKit::ChromeClient?
./Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.h:43:11: note:
because the following virtual functions are pure within
?WebKit::ChromeClient?:
./Source/WebCore/page/ChromeClient.h:232:42: note: virtual
WTF::PassOwnPtr<WebCore::ColorChooser>
WebCore::ChromeClient::createColorChooser(WebCore::ColorChooserClient*,
const WebCore::Color&)
make[1]: *** [Source/WebKit/gtk/webkit/libwebkitgtk_3_0_la-webkitwebview.lo]
Error 1
I have tried other verions also but getting the same error. Thanks in
advance for any of your suggestions and help.
*
RAHUL TYAGI
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120716/a1c9b182/attachment-0001.html>
------------------------------
_______________________________________________
webkit-help mailing list
webkit-help-L0Ma0HqZfWbDNr2163bV0w@public.gmane.orgg
http://lists.webkit.org/mailman/listinfo/webkit-help
End of webkit-help Digest, Vol 37, Issue 5
******************************************
--
Thanks & Regards,
Prince Goyal
07838653397
<div>
<p>Hi,<br><br>As WebCore::ChromeClient contains pure virtual function, it must override all the pure virtual functions.<br>You can provide default definition as of now for compilation as provided for other functions:<br><br>For example:<br><br>bool ChromeClient::hasOpenedPopup() const<br>{<br> notImplemented();<br> return false;<br>}<br><br>I believe that it will resolve the compilation error.<br><br>Thanks,<br>Prince Goyal<br><br><br></p>
<div class="gmail_quote">
On Tue, Jul 17, 2012 at 12:30 AM, <span dir="ltr"><<a href="mailto:webkit-help-request@..." target="_blank">webkit-help-request <at> lists.webkit.org</a>></span> wrote:<br><blockquote class="gmail_quote">
Send webkit-help mailing list submissions to<br>
<a href="mailto:webkit-help@...">webkit-help <at> lists.webkit.org</a><br><br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.webkit.org/mailman/listinfo/webkit-help" target="_blank">http://lists.webkit.org/mailman/listinfo/webkit-help</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:webkit-help-request@...">webkit-help-request@...</a><br><br>
You can reach the person managing the list at<br>
<a href="mailto:webkit-help-owner@...">webkit-help-owner@...</a><br><br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of webkit-help digest..."<br><br><br>
Today's Topics:<br><br>
1. cannot allocate an object of abstract type<br>
?WebKit::ChromeClient? (rahul tyagi)<br><br><br>
----------------------------------------------------------------------<br><br>
Message: 1<br>
Date: Mon, 16 Jul 2012 10:52:26 +0530<br>
From: rahul tyagi <<a href="mailto:rahultyagi.ait@...">rahultyagi.ait@...</a>><br>
To: <a href="mailto:webkit-help@...">webkit-help@...t.org</a><br>
Subject: [webkit-help] cannot allocate an object of abstract type<br>
?WebKit::ChromeClient?<br>
Message-ID:<br>
<CAEx5rF9B8Qe7LjFYxtSj9DRTqNewp=<a href="mailto:GcDqMinb24juXcHPpPgQ@...">GcDqMinb24juXcHPpPgQ@...</a>><br>
Content-Type: text/plain; charset="windows-1252"<br><br>
Hi,<br>
I am using nightly build "r121554" on Ubuntu 12.04. While compilation<br>
in release mode i am getting the following error :<br><br>
Source/WebKit/gtk/webkit/webkitwebview.cpp: In function ?void<br>
webkit_web_view_init(WebKitWebView*)?:<br>
Source/WebKit/gtk/webkit/webkitwebview.cpp:3609:64: error: cannot<br>
allocate an object of abstract type ?WebKit::ChromeClient?<br>
./Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.h:43:11: note:<br>
because the following virtual functions are pure within<br>
?WebKit::ChromeClient?:<br>
./Source/WebCore/page/ChromeClient.h:232:42: note: virtual<br>
WTF::PassOwnPtr<WebCore::ColorChooser><br>
WebCore::ChromeClient::createColorChooser(WebCore::ColorChooserClient*,<br>
const WebCore::Color&)<br>
make[1]: *** [Source/WebKit/gtk/webkit/libwebkitgtk_3_0_la-webkitwebview.lo]<br>
Error 1<br><br><br>
I have tried other verions also but getting the same error. Thanks in<br>
advance for any of your suggestions and help.<br><br><br><br>
*<br>
RAHUL TYAGI<br><br>
*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.webkit.org/pipermail/webkit-help/attachments/20120716/a1c9b182/attachment-0001.html" target="_blank">http://lists.webkit.org/pipermail/webkit-help/attachments/20120716/a1c9b182/attachment-0001.html</a>><br><br>
------------------------------<br><br>
_______________________________________________<br>
webkit-help mailing list<br><a href="mailto:webkit-help@...">webkit-help@...g</a><br><a href="http://lists.webkit.org/mailman/listinfo/webkit-help" target="_blank">http://lists.webkit.org/mailman/listinfo/webkit-help</a><br><br><br>
End of webkit-help Digest, Vol 37, Issue 5<br>
******************************************<br>
</blockquote>
</div>
<br><br clear="all"><br>-- <br><div>Thanks & Regards,</div>
<div>Prince Goyal</div>
<div>07838653397</div>
<br>
</div>