From owner-freebsd-questions Mon Feb 2 22:26:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA01931 for questions-outgoing; Mon, 2 Feb 1998 22:26:55 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA01923 for ; Mon, 2 Feb 1998 22:26:52 -0800 (PST) (envelope-from rostewa2@vt.edu) Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) by quackerjack.cc.vt.edu (8.8.8/8.8.8) with ESMTP id BAA14721 for ; Tue, 3 Feb 1998 01:28:59 -0500 (EST) Received: from vt.edu (rostewa2.campus.vt.edu [198.82.96.185]) by sable.cc.vt.edu (8.8.8/8.8.8) with ESMTP id BAA01348 for ; Tue, 3 Feb 1998 01:26:45 -0500 (EST) Message-ID: <34D67266.83211CD9@vt.edu> Date: Tue, 03 Feb 1998 01:27:02 +0000 From: Brandon Stewart X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-STABLE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: How to get c-math library functions to work Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" I cannot get the various goodies in math.h to work. I need the exp() function for a numerical methods class for an assignment due tomorrow (a quick reply would be greatly appreciated). When I compile a file that includes math.h and uses exp(), I get a linker error (undefined .. _exp referenced from text segment). I tried the same code on the lab machines (Which also run freebsd), and got the same thing. Brought the code to a win95 machine, and compilation and linkage worked perfectly. Quick help would be appreciated. Cheers, Brandon