math errors

Hi,

I’m having some trouble with math functions (sqrt, etc.)
The linker says that it can’t find them. I’ve noticed that
libm library is mentioned in the docs, so I added
LDFLAGS = -l libm but it did’t help a lot. Now it says
that “ld: cannot find -llibm”. Any thoughts?

DMitri <ivdal@yahoo.com> wrote:

: Hi,

: I’m having some trouble with math functions (sqrt, etc.)
: The linker says that it can’t find them. I’ve noticed that
: libm library is mentioned in the docs, so I added
: LDFLAGS = -l libm but it did’t help a lot. Now it says
: that “ld: cannot find -llibm”. Any thoughts?

Try LDFLAGS = -l m