Re: Problem with GTK installation under Solaris 9

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

 



Schuler, Dr. Christian (Christian.Schuler@xxxxxx) wrote:
>
> I have installed gtk-2.2.4 Solaris 9 binaries from sunfreeware
>
> When I try to compile and link the base.c test programm, I get the
> following
> linker errors:
>
> # gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
> Undefined                       first referenced
>  symbol                             in file
> gdk_drawable_get_display            /usr/local/lib/libgtk-x11-2.0.so
> gdk_window_set_geometry_hints       /usr/local/lib/libgtk-x11-2.0.so
> The pkg-config-Output is listed below:
>
> # pkg-config --cflags --libs gtk+-2.0
> -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
> -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
> -lm -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
> -liconv

The symbols you are missing should all be defined in
/usr/local/lib/libgdk-x11-2.0.so, check to make sure they are there:

nm /usr/local/lib/libgdk-x11-2.0.so | grep gdk_drawable_get_display

to check if the symbols are there.

Do you have LD_LIBRARY_PATH set to some other directory then /usr/local/lib
perhaps ?

Daniel

--
Daniel Nilsson



_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux