From: "Michael Schuster" Organization: LS f. Elektrische Energieversorgung To: kagel AT quasar DOT bloomberg DOT com, djgpp AT delorie DOT com Date: Tue, 16 Jan 1996 09:02:56 MET Subject: Re: Peter: again!! Undefined reference to 'sin' this time Gruess Dich! Your programm Sine.c: > #include > #include > 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 ----------------------------------------------------------------------