command line - What does "gcc -lm -o [executable_name] [file_name].c" mean? -
specifically, "-lm" mean, , required include that? there "dictionary" online explain of these command abbreviations "-lm"?
this linking against m library... used math functions.
the -l<libname> parameter gcc means 'link library'.
the m library link (e.g: libm.so or libm.a).
see gcc man page (run man gcc), , functions sin(), sqrt(), pow(), etc...
note in these man pages, states:
link -lm.
Comments
Post a Comment