Date: Mon, 8 Nov 2004 14:00:33 -0500 From: Vince Sabio <vince@vjs.org> To: freebsd-questions@FreeBSD.org Subject: math.h doesn't include pow? Message-ID: <p05200f14bdb56efeb236@[192.168.0.5]>
next in thread | raw e-mail | index | archive | help
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 <math.h>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05200f14bdb56efeb236>