Re: cannot execute GTK1.2 Application

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

 



On Tue, 2006-05-02 at 17:12 +0100, Anees Shahul wrote:
I have installed GTK+-1.2.10 and GLIB1.2.10.I am using
Fedora core2.0.When tried to run some sample
applications,it came with an error "Cannot load shared
libraries".Any help appreciated.

I have gtk+-1.2.10-39 and glib-1.2.10-16, but I appear to have 2.0 headers installed. Fedora Core 4. I figured this out by looking at /usr/include. Anyway, I compile like this:

        gcc -o <whatever> <whatever.c> `pkg-config --libs gtk+-2.0 --cflags gtk+-2.0`

I get a clean compile every time with samples from the book I'm running through just now.

To confirm, run the pkg-config --libs... command by itself and see what results you get. This or some close analog should work for you.

Dave Shaw
_______________________________________________

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