Mail Archives: djgpp/1996/01/16/03:20:27
Gruess Dich!
Your programm Sine.c:
> #include <math.h>
> #include <stdio.h>
> main ()
> {
> float d = 40.05;
> float n ;
> n = sin( d ) ;
> printf("The sine of %f is %f", d, n);
> return(0);
> }
will work fine, if you use ggc sine.c -lm. (Note, the libaryoption is
-lm not -lmath)
Hope that helps
Michi
'Bye, bye Mister Pride' (ABC, Night you murdered Love)
----------------------------------------------------------------------
Dipl.-Ing
Michael Schuster
Lehrstuhl fuer Elektrische Energieversorgung
Friedrich Alexander Universitaet Erlangen
Cauerstrasse 4
(0)9131 85 8762
----------------------------------------------------------------------
- Raw text -