This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug in using functions defined in math.h
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Chester Rouse <CSRouse at mn dot rr dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, gcc-bugs at gcc dot gnu dot org
- Date: Mon, 1 Sep 2003 15:32:57 -0700
- Subject: Re: bug in using functions defined in math.h
The problem is that glibc's math.h like to inline math functions so
that is why
you are seeing some undefined function and some that are defined, to
correct
this add -lm agurment when linking, this links in the math library
which is
needed for math functions.
Thanks,
Andrew Pinski