From owner-freebsd-questions Fri Jul 5 15:41:35 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA17160 for questions-outgoing; Fri, 5 Jul 1996 15:41:35 -0700 (PDT) Received: from badboy.wisetech.com (badboy.wisetech.com [205.231.232.76]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA17155 for ; Fri, 5 Jul 1996 15:41:31 -0700 (PDT) Received: from badboy.wisetech.com (localhost [127.0.0.1]) by badboy.wisetech.com (8.6.12/8.6.9) with SMTP id SAA07703; Fri, 5 Jul 1996 18:27:45 -0400 Message-ID: <31DD96E1.2781E494@wisetech.com> Date: Fri, 05 Jul 1996 18:27:45 -0400 From: Rick Weldon Organization: Weldon Internet SEcurity Technologies X-Mailer: Mozilla 2.0 (X11; I; FreeBSD 2.1.0-RELEASE i386) MIME-Version: 1.0 To: Michael Searle CC: questions@freefall.freebsd.org Subject: Re: C libraries References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Michael Searle wrote: > #cc sqrt.c -o sqrt > /var/tmp/cc0002661.o: Undefined symbol '_sqrt' referenced from text segment You need to link in the math library. Add -lm # cc sqrt.c -o sqrt -lm should do it. I guess on the other machine your mentioned the math routines are in libc or the math lib is automagically searched. Rick