Re: -lm not required when including functions from math.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eljay,

That helped enormously, thanks for the pointer.  They are indeed built into the
compiler.  Now I know to use -fno-builtin and -lm if I specifically want to use libm.a,
and more importantly, why.

Best regards,

Harvey

----- Original Message ----
> From: Eljay Love-Jensen <eljay@xxxxxxxxx>
> To: Harvey Muller <hlmuller@xxxxxxxxx>; GCC-help <gcc-help@xxxxxxxxxxx>
> Sent: Friday, June 27, 2008 1:06:32 PM
> Subject: Re: -lm not required when including functions from math.h
> 
> Hi Harvey,
> 
> Some math functions are built into the compiler.
> 
> Some math functions are macros in the math.h header.
> 
> Some platforms include -lm (or the analogous equivalent) for you.
> 
> HTH,
> --Eljay



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux