Compiler option -lm is required when compiling and linking program containing functions in math.h on Linux GCC, otherwise a link error will appear. However, -lm option is not required in MinGW GCC on Windows.
↧
Compiler option -lm is required when compiling and linking program containing functions in math.h on Linux GCC, otherwise a link error will appear. However, -lm option is not required in MinGW GCC on Windows.