I'm not sure what the problem is. g_thread_init is prototyped in glib.h. Are you using autobreak? Or a hand-made makefile?
I actually found out what the pb. was. I read somewhere I have to link -lgthread, I did it worked (actually I thought the `gtk-config --cflags --libs gthread` would be enough...). But the error message is still there. So my question would be to know when actually I have to call the gdk_threads_enter/leave? I think I have not yet understood it well. It would be fine if you could help me on that point. Thanks again.
----- Original Message ----- From: "Eric Tchepannou" <tcheer gmx de> To: "Michael Rothwell" <rothwell holly-springs nc us> Cc: <gtk-app-devel-list gnome org> Sent: Thursday, April 18, 2002 10:07 AM Subject: Re: Xlib: unexpected async reply (sequence 0x1686)! [--- *URGENT* Please help]See the Threads section in the FAQ: http://www.gtk.org/faq/#AEN462Thanks Michael, I found the link after posting my contribution aboutthisissue. I tryied to apply as explained there, but during compilation I receive the following error message: " undefined reference to `g_thread_init' " though I have included the glib.h and gdk/gdk.h Can you please help me on this? PS: #include <gnome.h> #include <glib.h> #include "interface.h" #include "support.h" #include "main.h" int main (int argc, char *argv[]) { g_thread_init (NULL); gnome_init ("gui", VERSION, argc, argv); /* * The following code was added by Glade to create one of eachcomponent* (except popup menus), just so that you see something after building * the project. Delete any components that you don't want showninitially.*/ main_window = create_main_window (); gtk_widget_show (main_window); gdk_threads_enter (); gtk_main(); gdk_threads_leave (); return 0; } Thanks.On Thu, 2002-04-18 at 08:03, Eric Tchepannou wrote:Hallo group, I have problems creating a GUI and receive everytime this Message: Xlib: unexpected async reply (sequence 0x1686)! I have read in the internet it is due to threads that I am using inmyprogramm. Can someone please hellp me solving this problem? Thanks for any contribution. --- Eric Tchepannou -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
Attachment:
"
Description: Binary data