Re: [gtk-list] Re: Run Time Error



Hi Robert:

I appreciate your explanation about *.a and *.so.

Best Regards,
Wenhao


>From: robert_gasch@peoplesoft.com
>Reply-To: gtk-list@redhat.com
>To: gtk-list@redhat.com
>Subject: [gtk-list] Re: Run Time Error
>Date: Tue, 06 Jul 1999 16:40:23 GMT
>
>
>OK, this is actually quite simple:
>      libxxx.a            a static library
>      libxxx.so      a shared library (Windows people know this as a DLL)
>
>When you link a static executable, you use the *.a library. When
>you link a dynamic exectuable (preferred as it's much smaller)
>you use the *.so file which is then loaded by the linker at program
>startup time. If you have an executable, you can say
>      ldd <my_program>
>and it will tell you what shared libraries it will load upon startup. You
>can
>even 'observe' this happening in the log file generated by
>      strace -o logfile <my_program>
>if it's a dynamic executable ...
>
>To answer your question: There's no set order/method in which
>libraries are used; it depends on the way you built/linked your
>executable ...
>
>Hope this helps
>--> Robert
>
>
>
>
>Wenhao Meng <wenhao_meng@hotmail.com> on 07/06/99 04:59:33 PM
>
>Please respond to gtk-list@redhat.com
>
>To:   gtk-list@redhat.com
>cc:
>Subject:  [gtk-list] Re: Run Time Error
>
>
>Hi:
>
>I have similar error messages when I run an application using imlib.
>Following your suggestions, I run ldconfig and found out the problem was
>gone. Can someone tell me the difference between libxxx.a and libxxx.so.
>Which one is loaded first when an application starts.
>
>Thanks
>
>Wenhao
>
> >From: Geert Bevin <gbevin@thunderstorms.org>
> >Reply-To: gtk-list@redhat.com
> >To: gtk-list@redhat.com
> >Subject: [gtk-list] Re: Run Time Error
> >Date: Tue, 06 Jul 1999 00:08:58 +0200
> >
> >Are you sure that /usr/gtkinst/gtk+/lib is present in LD_LIBRARY_PATH or
> >/etc/ld.so.conf? And have you run ldconfig after the install?
> >
> >Ashraf Saad wrote:
> > >
> > > hi,
> > > i am new to GTK users, i have installed GTK with
> >--prefix=/usr/gtkinst/gtk+
> > > as argument for ./configure for both glib-1.2.3 and gtk+-1.2.3.
> > > i tried to run helloworld example, after make is succeeded, i ran
> > > ./helloworld but i got the following message:
> > > ---------------------------------
> > > error in loading shared libraries
> > > libgtk-1.2.so.0: cannot open shared object file: No such file or
> >directory.
> > > ---------------------------------
> > > although this file exists at /usr/gtkinst/gtk+/lib
> > >
> > > what should i do ?
> > >
> > > thanks
> > >
> > > ______________________________________________________
> > > Get Your Private, Free Email at http://www.hotmail.com
> > >
> > > --
> > > To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
> >/dev/null
> >
> >--
> >To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
>/dev/null
> >
>
>
>_______________________________________________________________
>Get Free Email and Do More On The Web. Visit http://www.msn.com
>
>--
>To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>
>
>
>
>
>
>
>--
>To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com



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