Sunday, October 30, 2022

[SOLVED] GCC -lm -lz -lrt options - what are they about?

Issue

I know that these are some common/basic libraries, but what do they mean exactly?

For example, I know, that -lm is some math library, but is this the standard math library or what?

-lz for compression? What compression?

And I don't have any idea what -lrt is.


What are these things?

  • math library. Is it the same that we use when we include <cmath> or <math.h>?
  • compress library. What does this mean? Does it provide some tools that we can use to compress files, or does it help the compiler/linker to do some compress things?

Solution



Answered By - Nim
Answer Checked By - David Goodson (WPSolving Volunteer)