GCC -lm -lz -lrt options - what are they about?

后端 未结 5 1184
猫巷女王i
猫巷女王i 2021-02-12 13:36

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 st

5条回答
  •  长情又很酷
    2021-02-12 14:11

    • -lz - is zlib, http://zlib.net/
    • -lm - is the math library as you've worked out (implementation defined AFAIK)
    • -lrt- provides POSIX realtime extensions: http://www.s-gms.ms.edus.si/cgi-bin/man-cgi?librt+3LIB

提交回复
热议问题