From owner-freebsd-questions Mon Feb 2 23:49:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA11974 for questions-outgoing; Mon, 2 Feb 1998 23:49:03 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (www.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA11969 for ; Mon, 2 Feb 1998 23:49:00 -0800 (PST) (envelope-from malte@webmore.com) Received: from niente (unverified [194.95.214.182]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Tue, 03 Feb 1998 08:46:42 +0100 Message-Id: <3.0.32.19980203083938.02fad704@cyclone.degnet.baynet.de> X-Sender: moos@cyclone.degnet.baynet.de X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 03 Feb 1998 08:39:39 -0100 To: Brandon Stewart From: Malte Lance Subject: Re: How to get c-math library functions to work Cc: questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" Include "-lm" in the linking-stage of cc Malte Lance malte@webmore.com At 01:27 03.02.98 +0000, you wrote: >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 >