Re: Error compiling webkitmm



On 03/11/2013 03:41 AM, Kjell Ahlstedt wrote:
2013-03-11 05:57, Dannick Pomerleau skrev:
The error is comming from this function.

  inline T_return operator()(arg1_type_ _A_a1) const
    {
      if (!empty() && !blocked())
        return (reinterpret_cast<call_type>(slot_base::rep_->call_))(slot_base::rep_, _A_a1);
      return T_return();
    }


/home/dannick/Documents/programming/webkitmm/mainline/webkit/webkitmm/webinspector.cc:249:1:   required from here
/usr/include/sigc++-2.0/sigc++/functors/slot.h:516:23: error: value-initialization of reference type 'WebKit::WebView&'

Compilation error messages from libsigc++'s many C++ template functions and template classes can be very difficult to interpret.
The compiler says the error is in slot.h, but don't take that for granted. It can be somewhere else. To start with, it's interesting to know what's in webinspector.cc, around line 249.

Kjell
Sorry I did not get back sooner here is the function from webinspector.cc at around line 249. It starts at  235.

static WebKitWebView* WebInspector_signal_inspect_web_view_callback(WebKitWebInspector* self, WebKitWebView* p0,void* data)
{
  using namespace WebKit;
  typedef sigc::slot< WebView&,WebView& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        return ((*static_cast<SlotType*>(slot))(*Glib::wrap(p0)
)).gobj();
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }

  typedef WebKitWebView* RType;
  return RType();
}

Here is a link to the github repository I created with the changes I have made until now.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]