Philip S Tellis forced the electrons to say:
> Thanks, it worked. My question is, why do we have to explicitly tell it
> to use the library (and why is the math library called libm.a and not
> libmath.a)?
Since the functions in the math library use extensive floating point
computations (most of them sum up convergent serieses to evaluate
their return values, especially the trigonometric and hyperbolic
functions), they were kept in a separate library in the early compilers
which was linked in only if the need arose.
And the name of the library I think reflects the age old unix tradition of
short names (a la cat, grep, vi...)
Binand
--
#include <stdio.h> | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c; | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c"; | printing program.
int main(){printf(p,10,34,p,34,10);return 0;} | Try it!!
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list
button and fill the appropriate information
and submit. For any other queries contact the ML maintener