Re: Shared or dynamic?!
- From: Dan Saul <daniel saul gmail com>
- To: Tomasz Jankowski <tomcioj gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Shared or dynamic?!
- Date: Wed, 30 May 2007 02:30:35 -0500
I have only just started with libraries myself, but the best I can
explain it to you is this:
* Static libraries are hardly different then .o files, except
rather then a .o file for each of your source files there is
only one, the library.
* Dynamic Libraries is any code that must be loaded before the
application starts, eg. libc, gtk... This is the type of library
you should use 80% of the time.
* For the rest you have loadable libraries, basically plugins,
flash is a plugin for example.
A quick google search got me this page;
http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html
It appears to have everything you need.
G'day, Dan
On Wed, 2007-30-05 at 07:59 +0200, Tomasz Jankowski wrote:
Hello!
I'm going to write network library hardly based on GLib to improve my
programming skills. However I haven't wrote any library so far, so I haven't
got any experience with it. :( After reading libtool documentation I became
a bit confused, because I don't know what kind of library should I build. My
library should be linked with program while compilation process, not loaded
during runtime, so I thought, that I must build a static library, but
libraries such as GTK+ or GLib in /usr/lib directory have *.so prefix. I
don't understand it... :( Can someone explain it for my? What kind of
library should I build?
(Sorry for posting it on this mailing list, but i don't know any reliable
source of information. Moreover we can say, that it's someway linked to GTK+
apps programming, because I'm using GLib ;P)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]