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

Popular posts from this blog

4x4 Matrix in Python -

python - String indices must be integers and while issue -

python - PyInstaller UAC not working in onefile mode -