This is not ROS related, and does not belong on this mailing list. I would recommend going through the wxwidgets tutorials: http://wxwidgets.org/docs/tutorials.htm, and using their mailing lists for any questions. Josh On Thu, Aug 26, 2010 at 10:27 AM, #HONG HUAJIE# wrote: > Hi to all, > > I try to run wxFrame on my program but my Error Report inform me that > "You forgot to call g_type_init()" > > But when i insert inside the program, my Error Report inform me that > error: ‘g_type_init’ was not declared in this scope program > > What approach should i used to solve this problem? > > With regards, > Hua Jie > ------------------------ Error ----------------------- > [ INFO] [1282842581.061521339]: Connected to master at [localhost:11311] > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-CRITICAL **: g_once_init_leave: assertion > `initialization_value != 0' failed > > (process:2327): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion > `GDK_IS_DISPLAY (display)' failed > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-CRITICAL **: g_once_init_leave: assertion > `initialization_value != 0' failed > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-GObject-CRITICAL **: g_type_add_interface_static: > assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-GObject-CRITICAL **: g_type_add_interface_static: > assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-GObject-CRITICAL **: g_type_add_interface_static: > assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-CRITICAL **: g_once_init_leave: assertion > `initialization_value != 0' failed > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > (process:2327): GLib-GObject-CRITICAL **: g_type_add_interface_static: > assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed > > (process:2327): GLib-CRITICAL **: g_once_init_leave: assertion > `initialization_value != 0' failed > > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > >