From owner-freebsd-questions Sat Feb 6 16:32:19 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA13456 for freebsd-questions-outgoing; Sat, 6 Feb 1999 16:32:19 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from house.key.net.au (house.key.net.au [203.35.4.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA13428 for ; Sat, 6 Feb 1999 16:31:56 -0800 (PST) (envelope-from keith@apcs.com.au) Received: (from uucp@localhost) by house.key.net.au (8.8.8/8.8.8) id LAA03918 for ; Sun, 7 Feb 1999 11:31:51 +1100 (EST) (envelope-from keith@apcs.com.au) Received: from well.apcs.com.au(203.35.4.19) via SMTP by mailgw.key.net.au, id smtpdmJ3911; Sun Feb 7 11:31:40 1999 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Date: Sun, 07 Feb 1999 11:32:38 +1100 (EST) Reply-To: keith@apcs.com.au Organization: Australia Power Control Systems P/L From: Keith Anderson To: questions@FreeBSD.ORG Subject: math.h ? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 #include main () { double x = 64; double ans; ans = sqrt(x); printf("ans = %lf\n",ans); } 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 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