Re: Help on compiling notebook example




Sorry I pressed the wrong button.

Let me continue.

I have the following code:

In my .h file, I have:
  class CGraphView : public Gtk::ScrolledWindow
  {
    ..... .....
    static Gtk::Button _pageMenuLabel;
  };

In my .cpp I have:
Gtk::Button CGraphView::_pageMenuLabel("X");

I planned to use _pageMenuLabel as an page to Gtk::Notebook as in:
  append_page(* graph_view, graph_view->_pageTabLabel, CGraphView::_pageMenuLabel);
After I compile and  run gdb with breakpoint set on the above line, I got the following.

I got two questions to asked



(gdb) r
Starting program: /proj/utool/gui/build/utool
warning: .dynamic section for "/usr/lib/libpangocairo-1.0.so.0" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for "/usr/lib/libpango-1.0.so.0" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for "/usr/lib/libX11.so.6" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for "/lib/libz.so.1" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
[Thread debugging using libthread_db enabled]

Breakpoint 2, __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at src/CGraphView.cpp:6
(gdb) n

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3431): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:3431): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `<invalid>'

(process:3431): GLib-GObject-CRITICAL **: g_object_class_find_property: assertion `G_IS_OBJECT_CLASS (class)' failed

(process:3431): GLib-GObject-CRITICAL **: gtype.c:3270: You forgot to call g_type_init()

(process:3431): glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "(null)" has no property named "label"

(process:3431): GLib-GObject-CRITICAL **: g_type_class_unref: assertion `g_class != NULL' failed

(process:3431): GLib-GObject-CRITICAL **: g_object_newv: assertion `G_TYPE_IS_OBJECT (object_type)' failed

(process:3431): GLib-GObject-CRITICAL **: gtype.c:2706: You forgot to call g_type_init()

(process:3431): glibmm-CRITICAL **: Glib::Interface::Interface(const Glib::Interface_Class&): assertion `gobject_ != 0' failed
(gdb)


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