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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -