for a specific glibc version, how could I get the functions declared in head file are implementation in which library?

Mike Frysinger vapier@gentoo.org
Mon Apr 14 23:18:00 GMT 2008


On Sunday 13 April 2008, Maciej W. Rozycki wrote:
> On Sun, 13 Apr 2008, Mike Frysinger wrote:
> > >   I meant, If I want to use a function in glibc, I need to link with
> > > the corresponding shared library, how could I know, which library I
> > > should link with?
> >
> > there is only one library, the C library, and gcc automatically does
> > "-lc" for you.
>
>  Well, sinf() for example needs -lm while clock_settime() -- -lrt.  I
> suppose the right place for such information are the glibc info pages, but
> there is never enough force available onboard to put all the bits there.
> There might be a book available on the market as well, but I have never
> bothered checking that.  Failing those, `objdump' on the libraries in
> question will reveal which symbols they provide.

the respective man pages from the linux-man-pages project already documents 
things nicely.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20080414/165b9cdb/attachment.sig>


More information about the Libc-alpha mailing list