Linking Error undefinde reference floor

I need some help.

I use a self made library with the ansi c function floor of the
header-file math.h

Well I can compile the library, without any error.

But if I use the library for compiling a nother program, I get linking
errors with
undefinde reference for floor.

Is there anybody ho can help me?

Stephan

You need to link the program to the math library, switch “-lm”
Markus

“Stephan Goebels” <StephanGoebels@web.de> wrote in message
news:3A747214.F870F2B7@web.de

I need some help.

I use a self made library with the ansi c function floor of the
header-file math.h

Well I can compile the library, without any error.

But if I use the library for compiling a nother program, I get linking
errors with
undefinde reference for floor.

Is there anybody ho can help me?

Stephan