Re: glibmm-CRITICAL **: Glib::ObjectBase* Glib::wrap_create_new_wrapper(GObject*): assertion `wrap_func_table != 0' failed
- From: José Alburquerque <jaalburquerque gmail com>
- To: Joaquin Pérez Valera <joaquinperezvalera gmail com>
- Cc: gtkmm list <gtkmm-list gnome org>
- Subject: Re: glibmm-CRITICAL **: Glib::ObjectBase* Glib::wrap_create_new_wrapper(GObject*): assertion `wrap_func_table != 0' failed
- Date: Fri, 02 Nov 2012 15:32:32 -0400
On Fri, 2012-11-02 at 15:25 -0400, José Alburquerque wrote:
> On Fri, 2012-11-02 at 14:37 -0400, José Alburquerque wrote:
> > On Fri, 2012-11-02 at 14:35 -0400, José Alburquerque wrote:
> > > On Fri, 2012-11-02 at 14:22 -0400, José Alburquerque wrote:
> > > > On Fri, 2012-11-02 at 11:22 -0600, Joaquin Pérez Valera wrote:
> > > > > Hello José
> > > > >
> > > > >
> > > > > I looked for the version with
> > > > >
> > > > >
> > > > > #pkg-config --modversion gtkmm-3.0
> > > > >
> > > > >
> > > > > And the answer was: 3.4.2
> > > > >
> > > > >
> > > > > The example I was trying to compile was not modified. (I attach the
> > > > > files).
> > > >
> > > > Could you say how you compile the example? You said that you get no
> > > > errors when compiling, right?
> > >
> > > Nevermind. The problem is that the example you're using was written for
> > > gtkmm-2.4 and not gtkmm-3.0. You should use the examples from the most
> > > recent tutorial:
> > >
> > > http://developer.gnome.org/gtkmm-tutorial/unstable/index.html
> >
> > Of course, that is if you're using gtkmm-3.0. If you're using gtkmm-2.4
> > then the example you're having trouble with now would work just fine in
> > that version.
>
> Actually, I'm wrong about the above. There should be no reason why the
> cool button example should not compile for either gtkmm-2.4 or
> gtkmm-3.0.
Of course, I mean the example code that you attached (modulo the typo,
of course).
> There is a typo in the main.cc file that you're using. The
> line:
>
> Gtk::Main (argc, argv);
>
> Should be:
>
> Gtk::Main kit(argc, argv);
>
> Something minor but it makes the Gtk::Main instance disappear which
> causes the errors/warnings you reported.
>
>
--
José
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]