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

View: New views
7 Messages — Rating Filter:   Alert me  

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

by jcyrss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by Mike Frysinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 06 September 2007, jcyrss wrote:
> for a specific glibc version, how could I get the functions declared in
> head file are implementation in  which library?

i dont really understand what you're after ... can you please rephrase
-mike


signature.asc (844 bytes) Download Attachment

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

by jcyrss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, Mike

  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?
Thank you.


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

by Mike Frysinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 23 March 2008, jcyrss 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.
-mike


signature.asc (844 bytes) Download Attachment

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

by Maciej W. Rozycki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

  Maciej

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

by Mike Frysinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


signature.asc (844 bytes) Download Attachment

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

by Michael Kerrisk-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mike Frysinger wrote:

> 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.

Indeed -- you beat me to the punch pointing that out Mike.

Maciej, if you find that a particular page in man-pages
(http://www.kernel.org/doc/man-pages/online_pages.html) fails to provide
that info, let me know.

Cheers,

Michael