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

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -