Zlib software introduction
zlib is a library suitable for data compression, developed by Jean-loup Gailly (responsible for compression) and Mark Adler (Responsible for decompression) development.
Zlib is designed to be a free, general-purpose, legally unencumbered (that is, not covered by any patents) lossless data compression library. zlib works with almost any calculator hardware and operating system.
Zlib software features
The data format of zlib itself can be transplanted across platforms.
Unlike the LZW compression method and GIF image compression available on Unix, The compression methods available in zlib never expand the data. (LZW can cause the file size to double or even triple in extreme cases).
The memory usage of zlib is also independent of the input data, and part of the memory usage can be appropriately reduced if necessary.
Zlib installation instructions
Enter the zlib directory and execute the following command to install zlib
In the make install step, since zlib needs to be installed in the /usr/local/lib path, root permissions may be required. After successful installation, libz.a can be found under /usr/local/lib.
libz.a is a static library. In order to use the zlib interface, we must link libz.a in when connecting our program. Just add -lz after the link command /usr/llocal/lib/libz.a is enough.
For example, we have an application that uses the zlib library. There is only one source file: zpipe.c, which calls the zlib interface. Then execute the following command to compile:
Zlib update log
1.Fix several bugs;
2. Optimize detailed issues;
Huajun editor recommends:
Zlib is a very good programming and development software. I secretly tell you that I also use this software, and I don’t tell others about it! Powerful, green and safe. Huajun Software Park also provides you withOpenCart,Java2 Runtime Environment,Eclipse IDE for Java EE Developers For Linux(64-bit),GCC For Linux,Free PascalWaiting for you to download.
it works
it works
it works