Re: cannot execute GTK1.2 Application



On Tue, May 02, 2006 at 04:11:54PM -0400, David Shaw wrote:
> 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.

A couple of notes:

1. If you did `yum install gtk+-devel' you would have
development files for Gtk+ 1.2 too.  No need to `figure
out things by looking at /usr/include', just install any of
Gtk+ 1.2 and 2.x, or both, as you wish.

2. The discussed `Cannot load shared libraries' is a run
time error, not a compilation error.

Yeti


--
That's enough.



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