When you compile your program make sure you tell the linker to include the
math library:

gcc foo.c -lm

On Mon, 17 Apr 2000, UMAR PURNOMO wrote:

> Hi all,
> 
> Just asking to see if anyone knows about the fmod function 
> defined in math.h? I'm trying to port a program I coded in 
> windows but get an error 'undefined reference to 'fmod''. I 
> checked the glibc manual ( 
> http://www.gnu.org/manual/glibc-2.0.6/html_node/libc_267.htm
> l#IDX1360 ) and found reference to it so I assume that this 
> function is available under linux. 
> 
> Any ideas?
> 
> Thanks in advance.
> 
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text
> 

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to