Re: using gobject without gtk



Martin Kalbfuß píše v Pá 22. 01. 2010 v 21:18 +0100:
> Hi,
> 
> I want to use gobject for an extension of the allegro library. Without
> touching gtk+.
> 
> When I compile my test program. I get
> 
> (process:17961): GLib-GObject-CRITICAL
> **: /build/buildd-glib2.0_2.22.4-1-i386-jRfNZE/glib2.0-2.22.4/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function
> 
> (process:17961): GLib-CRITICAL **: g_once_init_leave: assertion
> `initialization_value != 0' failed
> 
> (process:17961): GLib-GObject-CRITICAL **: g_object_new: assertion
> `G_TYPE_IS_OBJECT (object_type)' failed
> 
> 
> Google tells me to call gtk_init. And that's the problem. What I have to
> do, to initialize it properly?
> 
> Thanks.
> 

Hello, as the message suggests, you need to call g_type_init ().

Attachment: signature.asc
Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?=



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