This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -lm not required when including functions from math.h
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Harvey Muller <hlmuller at yahoo dot com>, GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 27 Jun 2008 12:06:32 -0500
- 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