This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: printf more equal than sin?
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Holger Blasum" <holger-r-glibc at blasum dot net>
- Cc: libc-help at sourceware dot org
- Date: Thu, 23 Oct 2008 12:38:56 -0400
- Subject: Re: printf more equal than sin?
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=4R06CWuGDSe0MQFnH/2EQVCgpJ9lcSHIi8lOG3SBNac=; b=xUVdCSWEvSex/N+6G6xUhEwYV8vi0QEUaszbu9TOGlJtZD2i4C8oPP6L6LuMZP5a0r lg2WET3cYLDZ6n3yYa7kMMM3CGLshwIrwmxgo+i4x2bd5Od8XtQu0Q27JykjFnf2ec0b ztZ/wY7c+07w6MogxSATCOyKVt98Bc8OrEh7s=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=AyrzZxzuTQwwqvOchsoozIuDk8/w6TbJzHz8MNcr+APEnoqB2Bc3N7AA7DKMBYQTle TOm5cbu1l73Q5X8XZpGwcKOjcGYRhKc8+HlW8Xms28j02MoCyyyeMdMaTnOYSvh27rJ+ x0VEfxp7FNMIIyHTa7Sm+UOiZ9m0g+IQ8mrRw=
- References: <20081022164449.GA19622@koretsu> <119aab440810221237h4a2daa9fkbd08067df3aa9343@mail.gmail.com> <20081023163029.GA21731@koretsu>
On Thu, Oct 23, 2008 at 12:30 PM, Holger Blasum
<holger-r-glibc@blasum.net> wrote:
> Hello Carlos,
>
>> To use printf you have to link in the C library e.g. -lc, but as a
>> convenience the compiler driver (gcc) does it for you.
>
> Thanks, I realize that, as "gcc -v" shows, internally I get "-lc"
> for free under gcc but where is it documented which functions of the
> standard C library actually are packaged in glibc and which
> functions of the standard C library are not? (That's why I am asking
> here, I do not consider this question related to gcc, correct me
> if that is wrong.)
> (For example, if I refer to the current online version of the
> GNU C Library Manual, "sin" needing "-lm" resides in chapter 19 of
> http://www.gnu.org/software/libtool/manual/libc/index.html
> and "printf" needing "-lc" resides in chapter 12. They do not look
> different to me. - It's not really an "issue" but just something
> I had been unable to give a good explanation for - or is it only
> math.h that needs special treatment in glibc by historical
> accident?)
I don't understand what you are asking. Could you please clarify your question?
Cheers,
Carlos.