Re: [Linux-programlama] gtk derleme sorunu

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Yucehan Kutlu (yucehanktl@yahoo.com)
Date: Tue 19 Apr 2005 - 18:16:52 EEST


Teşekkür ederim sorunu dün liste de verilen site
yardımıyla çözmüştüm biraz acele bir soru oldu ama
kitaptaki kod olduğundan hata olabileceğini düşünmedim
belki hata değil de versiyon farklılıklarından dolayı
oluşmuştur.

İyi günler.

--- Yüksel ÖZCAN <yuksel@linux-sevenler.org> wrote:

> Selamlar,
> gtk_init() fonksiyonunu kullanmamissiniz.
>
> derlemek icin gcc -o ornek ornek.c `pkg-config
> --cflags --libs gtk+-2.0`
> -Wall
>
> --------------------------
> #include<gtk/gtk.h>
>
> int main(int argc, char *argv[]) {
>
> GtkWidget *window;
> gtk_init (&argc, &argv);
> window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
> gtk_widget_show(window);
> gtk_main();
> return 0;
>
> }
> --------------------------
>
> Pzt, 2005-04-18 tarihinde 04:08 -0700 saatinde,
> Yucehan Kutlu yazdı:
> > Evet byle sama bir hatayla sizi megul ettiim
> > iin afedersiniz
> > imdiki sorun ise derledikten sonra
> > yucehan@linux:~> gcc -o ornek ornek.c `pkg-config
> > --libs --cflags gtk+-2.0`
> > yucehan@linux:~> ./ornek
> >
> > (process:4593): GLib-GObject-CRITICAL **:
> > gtype.c:2253: initialization assertion failed, use
> > g_type_init() prior to this function
> >
> > (process:4593): GLib-GObject-CRITICAL **:
> > gtype.c:2253: initialization assertion failed, use
> > g_type_init() prior to this function
> >
> > (process:4593): GLib-GObject-CRITICAL **:
> > gtype.c:2253: initialization assertion failed, use
> > g_type_init() prior to this function
> >
> > (process:4593): GLib-GObject-CRITICAL **: file
> > gtype.c: line 2319 (g_type_add_interface_static):
> > assertion `G_TYPE_IS_INSTANTIATABLE
> (instance_type)'
> > failed
> >
> > (process:4593): GLib-GObject-CRITICAL **:
> > gtype.c:2253: initialization assertion failed, use
> > g_type_init() prior to this function
> >
> > (process:4593): GLib-GObject-CRITICAL **:
> > gtype.c:2253: initialization assertion failed, use
> > g_type_init() prior to this function
> >
> > (process:4593): GLib-GObject-CRITICAL **:
> > gtype.c:2253: initialization assertion failed, use
> > g_type_init() prior to this function
> >
> > (process:4593): GLib-GObject-CRITICAL **: file
> > gobject.c: line 819 (g_object_new): assertion
> > `G_TYPE_IS_OBJECT (object_type)' failed
> > Paralama arzas
> >
> > gtk-config kullanncada
> >
> > yucehan@linux:~> gcc -o ornek ornek.c `gtk-config
> > --cflags --libs`
> > yucehan@linux:~> ./ornek
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > Gtk-WARNING **: gtk_type_create(): unknown parent
> type
> > `21'.
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 152
> > (g_hash_table_insert): assertion `hash_table !=
> NULL'
> > failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 152
> > (g_hash_table_insert): assertion `hash_table !=
> NULL'
> > failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 152
> > (g_hash_table_insert): assertion `hash_table !=
> NULL'
> > failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > Gtk-WARNING **: gtk_type_create(): unknown parent
> type
> > `21'.
> >
> > Gtk-CRITICAL **: file gtktypeutils.c: line 337
> > (gtk_type_class): assertion `node != NULL' failed.
> >
> > Gtk-WARNING **: gtk_arg_type_new(): argument class
> in
> > "GtkContainer::border_width" is not in the
> `(null)'
> > ancestry
> >
> > Gtk-CRITICAL **: file gtkobject.c: line 939
> > (gtk_object_add_arg_type): assertion `arg_type >
> > GTK_TYPE_NONE' failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > Gtk-WARNING **: gtk_type_create(): unknown parent
> type
> > `21'.
> >
> > Gtk-CRITICAL **: file gtkobject.c: line 939
> > (gtk_object_add_arg_type): assertion `arg_type >
> > GTK_TYPE_NONE' failed.
> >
> > Gtk-WARNING **: gtk_arg_type_new(): argument class
> in
> > "GtkContainer::reallocate_redraws" is not in the
> > `(null)' ancestry
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > Gtk-WARNING **: gtk_type_create(): unknown parent
> type
> > `21'.
> >
> > Gtk-CRITICAL **: file gtksignal.c: line 433
> > (gtk_signal_lookup): assertion `gtk_type_is_a
> > (object_type, GTK_TYPE_OBJECT)' failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > Gtk-WARNING **: gtk_type_create(): unknown parent
> type
> > `21'.
> >
> > Gtk-CRITICAL **: file gtksignal.c: line 433
> > (gtk_signal_lookup): assertion `gtk_type_is_a
> > (object_type, GTK_TYPE_OBJECT)' failed.
> >
> > Gtk-CRITICAL **: file gtksignal.c: line 433
> > (gtk_signal_lookup): assertion `gtk_type_is_a
> > (object_type, GTK_TYPE_OBJECT)' failed.
> >
> > Gtk-CRITICAL **: file gtksignal.c: line 433
> > (gtk_signal_lookup): assertion `gtk_type_is_a
> > (object_type, GTK_TYPE_OBJECT)' failed.
> >
> > GLib-CRITICAL **: file ghash.c: line 138
> > (g_hash_table_lookup): assertion `hash_table !=
> NULL'
> > failed.
> >
> > Gtk-WARNING **: gtk_type_create(): unknown parent
> type
> > `21'.
> >
> > Gtk-CRITICAL **: file gtksignal.c: line 433
> > (gtk_signal_lookup): assertion `gtk_type_is_a
> > (object_type, GTK_TYPE_OBJECT)' failed.
> >
> > Gtk-CRITICAL **: file gtkobject.c: line 357
> > (gtk_object_class_add_signals): assertion
> > `GTK_IS_OBJECT_CLASS (class)' failed.
>
=== message truncated ===

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.