correct some spelling error; --- On Mon, 1/21/13, y w <ytra...@yahoo.com> wrote:
From: y w <ytra...@yahoo.com> Subject: How to add new WEBKIT_API function To: webkit-help@lists.webkit.org Received: Monday, January 21, 2013, 6:19 PM Hi all, I am using the webkit night archive r116865, I build it with GTK port on Ubuntu 12.04. It build successfully. I created my own function mytest(WebKitWebView* webView) and add it in webkitwebview.h WEBKIT_API void mytest(WebKitWebView* webView); and webkitwebview.cpp void mytest(WebKitWebView* webView) { printf("Get in my function!") ; } I will call the function when the page load is completed: void loadStatusCb(WebKitWebView *web_view, GParamSpec *pspec, gpointer data){ if (webkit_web_view_get_load_status(web_view) == WEBKIT_LOAD_FINISHED) { printf("get_load_status -->> WEBKIT_LOAD_FINISHED \n"); mytest(web_view) ; return; } } compile and link is no problem, but when I run it I got error undefined symbol: mytest Do I need also configure my function in some setting file?Does any one know how to solve it? Thanks,Yang
_______________________________________________ webkit-help mailing list webkit-help@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-help