From: Axel S. <A....@ke...> - 2007-03-20 15:57:19
|
On Tue, 2007-03-20 at 16:41 +0100, Jan Christiansen wrote: > Am 20.03.2007 um 16:07 schrieb Axel Simon: > > > This is weird. Can you try to build a C gtk application at all? Can > > you > > run gtk-demo on your machine? > > The gtk-demo works. > > > Try to build: > > http://www.gtk.org/tutorial/c39.html#SEC-HELLOWORLD > > > > using: > > > > gcc `pkg-config --cflags --libs gtk+-2.0` hello.c -o hello > > This reports the same undefined symbols as the compilation of gtk2hs. > Am I right that there is something basically wrong? Yes, definitely. This must work. Check if you have several versions of Gtk/Gdk installed and ensure that pkg-config looks in the right path (which you can override with PKG_CONFIG_PATH). pkg-config lives under /usr/local/bin on our Sun and it's package database are files stored under /usr/local/lib/pkgconfig/. If there are several versions, you might pick up the wrong dynamic libraries at runtime. Check you LD_LIBRARY_PATH variable. Maybe your sysadmins can help... Good luck, Axel. |