From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 19:00:54 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 65AF616A4D2 for ; Mon, 8 Nov 2004 19:00:54 +0000 (GMT) Received: from mail.vjs.org (achilles.vjs.org [209.163.107.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3AE643D49 for ; Mon, 8 Nov 2004 19:00:53 +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) for ; Mon, 8 Nov 2004 14:00:53 -0500 Mime-Version: 1.0 Message-Id: X-Mailer: Eudora 8.0b19 for Cray SV-2 (beta release), unregistered Date: Mon, 8 Nov 2004 14:00:33 -0500 To: freebsd-questions@FreeBSD.org From: Vince Sabio Content-Type: text/plain; charset="us-ascii" ; format="flowed" Subject: 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:00:54 -0000 My C library documentation states that the "pow" (power) function is included in math.h. However, when I go to link (compiling and linking with gcc), I get the following: 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? Running FreeBSD v5.1, installed from CD, including the developer tools. Single-boot system; there is no Microsoft software anywhere on the machine, so it's not their fault (for a change). ;-) -- __________________________________________________________________________ Vince Sabio vince@vjs.org