Date: Sun, 07 Feb 1999 11:32:38 +1100 (EST) From: Keith Anderson <keith@apcs.com.au> To: questions@FreeBSD.ORG Subject: math.h ? Message-ID: <XFMail.990207113238.keith@apcs.com.au>
next in thread | raw e-mail | index | archive | help
HI All, Below I have a very simple 'c' program but I can't make it work !! What am I doing wrong, it will not compile? Any help would be great Thanks Keith <snip test.c> #include <math.h> main () { double x = 64; double ans; ans = sqrt(x); printf("ans = %lf\n",ans); } </snip test.c> keith@wis~>cc test.c /var/tmp/ccV145121.o: Undefined symbol `_sqrt' referenced from text segment --- "The box said 'Requires Windows 95, NT, or better,' so I installed FreeBSD." ---------------------------------- E-Mail: Keith Anderson <keith@apcs.com.au> Date: 07-Feb-99 Time: 11:25:55 Satelite Service 64K to 2Meg This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990207113238.keith>