Le Lundi 9 Septembre 2002 19:02, Arnaud a �crit :
> Le Samedi 7 Septembre 2002 07:25, vous avez �crit :
> >     Bonjour
> >
> > C'est quoi la diff�rence entre : "linux binary - statically linked" et
> > "linux binary - dynamically linked"
>
> Salut,
> j'ai trouv� �a sur ta question dynamically ou statically linked

En r�sum� et en simplifi� :

Si tu �cris une application QT (par exemple), lors de la compilation tu as le 
choix entre l'�dition de lien statique ou dynamique.

En mode "dynamique", �a veut dire que les liens seront r�solus lorsque tu 
ex�cuteras le programme, ce sont des liens externes. En d�cod�, �a veut dire 
que pour que le programme marche, il faudra que le gars il ait install� la 
librairie libqt.so sur son PC

En lien "statique", le code de la librairie QT sera inclus dans l'ex�cutable. 
Donc �a simplifie bcp les choses pour celui qui va installer ton application 
(il n'a pas � installer de librairies en plus pour que �a marche).

L'inconv�nient du "statique", c'est que comme ta librairie QT (encore une 
fois, c'est un exemple) est incluse dans l'ex�cutable, si jamais tu as 2 
applis QT statiques sur ton disque dur, ben tu gaspilles 2 fois l'espace de 
stockage de la librairie QT.

Autre probl�me, si tu ex�cutes 2 applications QT li�es statiquement, ben tu 
gaspilles 2 fois la RAM occup�e par la Qt lib.


C'est clair ? (des fois j'arrive pas � savoir su je suis compr�hensible).

>
>
> That depends on your system. If you have a fairly new distribution, the
> dynamically linked core should be fine. 'Dynamically linked' means that the
> program is linked against certain libraries which it expects to be on your
> system. This saves RAM and harddisk space if the same library is used by
> many programs.
> f you have an older linux distribution (2-3 years or so), or you get a
> 'couldn't find library libxyz.so' error on starting the program, then you
> should get the statically linked core. 'Statically linked' means that the
> program contains all the functions it needs and doesn't expect any specific
> library to be already installed on your system. Statically linked programs
> are bigger than dynamically linked ones, but they should work right away.
> You will also need the statically linked core if you are running the donkey
> chroot'ed (but if you do that you probably know that anyway).
>
> Lu sur :
> http://users.aber.ac.uk/tpm01/guihome.html#CORE
>
> A+
> Arnaud.


Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à