Frank Carreiro <[EMAIL PROTECTED]> writes:

> That worked thanks :-)
> 
> I've read through the gcc man page and didn't see the -lm option.  In
> my source as I understand it #include <math.h> should have done it.

No, it only declares the symbols and functions. A header file does not
specify linking.


> Out of curiosity is there a way to compile without specifying -lm?
> 
> Just wondering why -lm is required for standard math functions.

Because libm contains the standard math functions.

-- 
Trond Eivind Glomsrød
Red Hat, Inc.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to