static linking woes



Hi,

I've searched the web, I've looked through the list archives, but I couldn't 
find a working solution to my problem.

I'm trying to statically link a gtk program of mine on linux (debian woody) 
using gcc-2.95.4 and gtk-1.2.10. It just doesn't work. I can make it link 
alright, but then it will segfault on startup with:

schlumpf [tim] - ~/gtksamples ---> ./helloworld
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'.
<snip  3 * ghash.c:138 + 1x gtk_type_create() messages repeated>
Gtk-CRITICAL **: file gtktypeutils.c: line 337 (gtk_type_class): assertion 
`node != NULL' failed.
Gtk-CRITICAL **: file gtkobject.c: line 939 (gtk_object_add_arg_type): 
assertion `arg_type > GTK_TYPE_NONE' failed.
Segmentation fault

For now I'm simply trying to statically link the helloworld program.

Any suggestions how I can make it work?
Thanks in advance
Cheers
-Tim



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