From owner-freebsd-questions Sun Oct 25 09:19:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA27525 for freebsd-questions-outgoing; Sun, 25 Oct 1998 09:19:48 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns1.schleprock.com (ns1.schleprock.com [209.44.61.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA27520 for ; Sun, 25 Oct 1998 09:19:47 -0800 (PST) (envelope-from jeffries@ns1.schleprock.com) Received: from localhost (jeffries@localhost) by ns1.schleprock.com (8.9.1/8.9.1) with ESMTP id MAA07479; Sun, 25 Oct 1998 12:06:11 -0600 (CST) Date: Sun, 25 Oct 1998 12:06:11 -0600 (CST) From: Jeffrey Lynn Jeffries To: Steve Friedrich cc: Brendan Kosowski , FreeBSD Questions Subject: Re: Problem with C compile on FreeBSD 2.2.5 In-Reply-To: <199810251552.KAA10734@laker.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >The C compiler on FreeBSD 2.2.5 will not let me comile an ANSI-C program > >that works fine on other ANSI-C compilers. > > > >The problem is with the trig. functions ( ie. sin, asin, etc... ). > > > >It says something like undefined symbol "_sin" referenced from text > >segment. > > > >I have included . When you compile with the math library, you must specifically link the math library as well, i.e.: gcc mathprog.c -lm ========================================================================== Jeffrey Lynn Jeffries Chief Software Engineer, Missing Link Media jeffries@schleprock.com http://www.schleprock.com/~jeffries Proud user of FreeBSD: Ask me how to unleash the daemon inside your PC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message