[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: sqrt() not recognized in c program??



I just checked (and hope to be corrected) but I couldn't find _ANY_
reference to requiring the -lm option to enable math functions.

I, like many others, was aware of this requirement but IMHO the
documentation may be deficient in this respect.

I would like to know if anyone can find the reference as it seems
not to be in the places I would look myself or expect a beginner
to look.

Ivan.


On Sun, Apr 18, 1999 at 10:56:32AM -0700, kaynjay@igalaxy.net wrote:
> On Sun, Apr 18, 1999 at 10:36:39AM -0700, Alan Su wrote:
> > sqrt is probably in the math library, so you need to link with the -lm
> > argument.  try that, and if it doesn't work, i'm sure i can find out
> > what the right way to do this is...
> > 
> > -alan
> > 
> > kaynjay@igalaxy.net wrote (Sun, 18 Apr 1999 10:27:19 -0700 ):
> > |>Does someone know why I would get the following errors in a compilation of a
> [...]
> 
> Thanks Alan.  That did it.  Sorry for what must be a trivial question, but I
> am only on page 3 of my "Ansi C programming for Scientists and Engineers"
> book.  
> 
> Kenward
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 


Reply to: