From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 19:21:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA6AA16A57E for ; Mon, 8 Nov 2004 19:20:59 +0000 (GMT) Received: from mail.vjs.org (achilles.vjs.org [209.163.107.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45E8843D2F for ; Mon, 8 Nov 2004 19:20:59 +0000 (GMT) (envelope-from vince@vjs.org) Received: from [192.168.0.5] (209.163.107.229) by mail.vjs.org with ESMTP (Eudora Internet Mail Server 3.1.5); Mon, 8 Nov 2004 14:20:58 -0500 Mime-Version: 1.0 Message-Id: In-Reply-To: <200411081904.iA8J41Ff009205@herd.plethora.net> References: <200411081904.iA8J41Ff009205@herd.plethora.net> X-Mailer: Eudora 8.0b19 for Cray SV-2 (beta release), unregistered Date: Mon, 8 Nov 2004 14:20:47 -0500 To: seebs@plethora.net (Peter Seebach) From: Vince Sabio Content-Type: text/plain; charset="us-ascii" ; format="flowed" cc: freebsd-questions@freebsd.org Subject: Re: math.h doesn't include pow? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 19:21:00 -0000 ** Sometime around 13:03 -0600 11/08/2004, Peter Seebach sent everyone: >In message , Vince Sabio writes: > >>In function `[function name]': >>[path/]datetime.c:668: undefined reference to `pow' >> >>Yes, I'm including . If I compile the exact same code under >>Darwin (BSD on PowerPC), it compiles fine. It also compiles in >>CodeWarrior. Is anyone else familiar with this problem? Could I have > >a path set up incorrectly, and be using the wrong libraries? > >FAQ. > >Very FAQ. I thought it must have been, so I searched my list archives -- which, admittedly, go back only to January of this year -- but didn't find anything on this problem. If there's a formal FreeBSD FAQ, I'd be happy to be clue-batted with it FFR. >Headers and libraries are distinct. Headers provide prototypes; libraries >provide definitions. Yes, my bad; sorry about that: % sed 's/libraries/headers/' >You want "-lm". Ah! Yes, that did the trick. Muchas gracias, or however those wacky Irish spell it.... -- __________________________________________________________________________ Vince Sabio vince@vjs.org