Re: Linking out a .a library

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

 



"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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux