Creer une lib .so contenant +sieurs fichiers
Fermé
yanis_00
-
28 oct. 2005 à 21:22
kmf31 Messages postés 1564 Date d'inscription mercredi 30 mars 2005 Statut Contributeur Dernière intervention 22 juin 2007 - 28 oct. 2005 à 21:34
kmf31 Messages postés 1564 Date d'inscription mercredi 30 mars 2005 Statut Contributeur Dernière intervention 22 juin 2007 - 28 oct. 2005 à 21:34
A voir également:
- Fichier .so
- Impossible d'obtenir le verrou /var/lib/dpkg/lock-frontend - Forum Ubuntu
- So sneaks avis - Forum Consommation et internet
- Impossible de verrouiller le répertoire /var/lib/apt/lists/ ✓ - Forum Ubuntu
- So lunettes avis - Forum Consommation et internet
- Quel est votre avis sur sneakers.com ? Fiable ou non ? - Forum Consommation et internet
1 réponse
kmf31
Messages postés
1564
Date d'inscription
mercredi 30 mars 2005
Statut
Contributeur
Dernière intervention
22 juin 2007
498
28 oct. 2005 à 21:34
28 oct. 2005 à 21:34
Il semble que tu es deja tres proche, en fait apparamment il faut faire:
gcc -fPIC -c toto1.c
gcc -fPIC -c toto2.c
gcc -shared -Wl,-soname,libtoto.so.1 -o libtoto.so.1.0 toto1.o toto2.o
Regarde ici ce HOWTO:
http://www.tldp.org/HOWTO/Program-Library-HOWTO/index.html
et notamment:
http://www.tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN95
(il semble que ce HOWTO n'a pas ete traduit en francais, au moins il n'est pas ici:
http://www.ibiblio.org/pub/Linux/docs/HOWTO/translations/fr/html/ )
gcc -fPIC -c toto1.c
gcc -fPIC -c toto2.c
gcc -shared -Wl,-soname,libtoto.so.1 -o libtoto.so.1.0 toto1.o toto2.o
Regarde ici ce HOWTO:
http://www.tldp.org/HOWTO/Program-Library-HOWTO/index.html
et notamment:
http://www.tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN95
(il semble que ce HOWTO n'a pas ete traduit en francais, au moins il n'est pas ici:
http://www.ibiblio.org/pub/Linux/docs/HOWTO/translations/fr/html/ )