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

后端 未结 5 1191
猫巷女王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条回答
  •  萌比男神i
    2021-02-12 14:13

    libm http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/libm.html

    libz http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/libzman.html

    librt http://www.rdg.ac.uk:8081/cgi-bin/cgiwrap/wsi14/poplog/man/3LIB/librt

    All of them are standard C afaik, probably included in libstdc++ (your question is tagged C++).

提交回复
热议问题