On Thu, 2002-10-31 at 09:33, Bill Jonas wrote:
> On Thu, Oct 31, 2002 at 08:58:28AM -0700, Liberty Young wrote:
> > gcc -Wall -D_GNU_SOURCE -D_ISOC99_SOURCE foo.c -o foo
>
> Add "-lm" somewhere on that line so that you link against the math
> library. Yes, you included math.h, but the linker won't know to link it
> against the math library unless you tell it to do so.
>
> --
> Bill Jonas * bill@billjonas.com * http://www.billjonas.com/
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety." -- Benjamin Franklin
Thanks, that works!
Such a silly thing to forget...boy do i feel silly now :)