On Sat, 3 May 2008, Ben Calvert wrote: > On May 3, 2008, at 12:56 AM, Richard Toohey wrote: > > > On 3/05/2008, at 6:21 PM, Richard Toohey wrote: > > > > > $ cc -lm test_pow.c > > $ > > > ok, this fixes it. i'll attempt to understand it when more awake. Thanks!
It has been this way since dinosaurs roamed the earth. Understanding why libm and libc are separate might involve the Vax, some of which had no floating point coprocessor. One might have more than one math library on a system for other reasons. (Remember the Weitek coprocessors for i386 about 15 years ago?) Dave -- The future isn't what it used to be. -- G'kar