Date: Sun, 5 May 1996 13:35:21 -0400 From: dj (DJ Delorie) Message-Id: <199605051735.NAA19113@delorie.com> To: ao950 AT FreeNet DOT Carleton DOT CA CC: djgpp AT delorie DOT com In-reply-to: <4me6om$5md@freenet-news.carleton.ca> (ao950@FreeNet.Carleton.CA) Subject: Re: libm.a/linker *BUG* with test program > This may be a stupid question but: why is it that when the math library is > not on the command line, it not only links and resolves the calls to pow > and ldexp, but it *works* too??? The C library has primitive versions of the ANSI-defined math functions, like ldexp and pow. The math library (-lm) has more complex versions that adhere to the IEEE spec better. When you add -lm, you get a different version of the function.