# Answer to Question #69565 in C++ for daud

Question #69565

what is is-lm function??

Expert's answer

Answer:

This option is used to link the libm library. Here, ‘-l’ means “to link”, ‘m’ means “libm”.

References:

[1]https://en.wikipedia.org/wiki/C_mathematical_functions#libm

[2]https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html

[3]https://stackoverflow.com/questions/4606301/gcc-why-the-lm-flag-is-needed-to-link-the-math-library

This option is used to link the libm library. Here, ‘-l’ means “to link”, ‘m’ means “libm”.

References:

[1]https://en.wikipedia.org/wiki/C_mathematical_functions#libm

[2]https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html

[3]https://stackoverflow.com/questions/4606301/gcc-why-the-lm-flag-is-needed-to-link-the-math-library

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment