This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: printf more equal than sin?
- From: "Ryan Arnold" <ryan dot arnold at gmail dot com>
- To: "Holger Blasum" <holger-pers at blasum dot net>
- Cc: "Carlos O'Donell" <carlos at systemhalted dot org>, libc-help at sourceware dot org
- Date: Thu, 23 Oct 2008 11:58:06 -0500
- 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:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UgtLhcMLopNLBX91d7j2tlkIz3RtGjSma3XrXwUpBJs=; b=Z+zFbL+oHuTt888K+yExErSRXwOJhpUwx6tFyN8Yrvg4aIqGZOToZvt+SJ8WvaKpA4 0qb0psPfWxEFr6SmOm7n4KvzXci31K/Nw0LAbaa63h0N2ThJbissJhNJhUWgEQ0BJF6J Hx626o8nnHUZ+PM1n6a/pF7Pgutqe+zTG1cQk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WbYgYlIhGsg4SHFvgu6AX616wvwr6J+wrQ6EXEuWgqebR0EggKd4FyfULQNN4jww7d IBD29GdjDUr+3F9BOpzx0rK+tZq7F/uNpqDl/OJhemsEYx8AA31AJ9KUmzD+QocL2FAw RoQxXwFv5qNBihWstv6RqLOJSa5nBMEXMDeLE=
- References: <20081022164449.GA19622@koretsu> <119aab440810221237h4a2daa9fkbd08067df3aa9343@mail.gmail.com> <20081023163029.GA21731@koretsu> <119aab440810230938t7afedbfdla0e7536ef6168ff1@mail.gmail.com> <20081023164707.GA22899@koretsu>
Joseph Myers pointed out on #glibc that this was decided long ago by
Unix convention. Some parts are documented in POSIX. Look under
'EXTENDED DESCRIPTION':
http://www.opengroup.org/onlinepubs/009695399/utilities/c99.html
Ryan S. Arnold
On Thu, Oct 23, 2008 at 11:47 AM, Holger Blasum <holger-pers@blasum.net> wrote:
> On 10-23, Carlos O'Donell wrote:
>> I don't understand what you are asking. Could you please clarify your question?
>
> If I run gcc, "sin"(math.h) needs "-lm".
> If I run gcc, "printf"(stdio.h) needs nothing (internally gcc uses "-lc", but
> I do not need to know this).
>
> Where does it say that sin needs "-lm" (as opposed to printf needing
> nothing or, internally only, "-lc") in the glibc documentation?
>
> --
> Holger
>