Ian Lance Taylor wrote: >"gruik@xxxxxxxxxxxxxx" <gruik@xxxxxxxxxxxxxx> writes: > >>I'm currently writing a library that I will soon implement >>in a PHP module. >>But PHP needs that all libraries have to be linked by the -l >>option. >>I made inquiries about this and i saw that, for exemple, a >>-lxyz option refers to a binary object file (kind of .o) >>beginning with "lib" and ending with ".a". > > >libxyz.a is normally not an object file. It is normally an archive. >It will work to name an object file that way, but it is >unconventional. > >Archives are created using the ar program. See the binutils >documentation. > >Ian > Oki, i see man ar said : "ar is considered a binary utility because archives of this sort are most often used as libraries holding commonly needed subroutines." So, i have to compile all my .o, put them together into a .a archive and finally link this archive into the executable file with -l option ? Does an "ar" command can be placed in a makefile? Thanks ! ********** PROTEGEZ VOS E-MAILS !********** Avec Tiscali SuperMail, vos e-mails en toute sécurité ! Anti Spam personnalisable Anti Virus actualisé en permanence et de nombreux bonus... Pour en savoir plus, rendez-vous sur http://www.tiscali.fr/supermail/