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
Comments
Leave a comment