This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printf more equal than sin?


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]