On Sun, 6 Feb 2000 13:55:08 -0600, Brad <[EMAIL PROTECTED]> was crying out from 
somewhere
  about: Re: [*] about gcc

lists> On Mon, Feb 07, 2000 at 04:38:32AM +0900, Junichi Uekawa wrote:
lists> > you need to do 
lists> > 
lists> > gcc -lm
lists> > 
lists> > to link the maths library.
lists> > 
lists> > Don't ask me why. 
lists> 
lists> Because the actual code for the sqrt function is in the math library,
lists> and the math library isn't linked in by default.

One thing I would really like to know is, why isn't it linked in by default?

Well, it would make people realize that these functions actually reside in the 
libraries, and tells people of the use of -lm from the early stages.

But, why isn't it, really, not linked in as default?

---------------------------------------------------------------------------
Junichi Uekawa, a.k.a. dancer
 a member of the Dept. of Knowledge Engineering and Computer Science, 
   Doshisha University.
... I pronounce Linux as Day-bee-enne

Reply via email to