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 is this one - -lrt
.
Can someone specify these things:
<cmath>
or <math.h>
? When you invoke GCC, it normally does preprocessing, compilation, assembly and linking. The "overall options" allow you to stop this process at an intermediate stage. For example, the -c option says not to run the linker.
It functions as a cross compiler, creating executable code for a platform other than the one on which the compiler is running. GCC is also a core component of the tightly integrated GNU toolchain, produced by the GNU Project, that includes glibc, Binutils, and the GNU Debugger (GDB).
Gulf Cooperation Council (GCC), political and economic alliance of six Middle Eastern countries—Saudi Arabia, Kuwait, the United Arab Emirates, Qatar, Bahrain, and Oman.
The / compiler option is used to turn on directives and specify constants. By adding this compile switch, you turn on the directive (or off, if the directive is preceded by NO).
-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 If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With