1 |
|
---|
2 | ZLib for Ada thick binding (ZLib.Ada)
|
---|
3 | Release 1.2
|
---|
4 |
|
---|
5 | ZLib.Ada is a thick binding interface to the popular ZLib data
|
---|
6 | compression library, available at http://www.gzip.org/zlib/.
|
---|
7 | It provides Ada-style access to the ZLib C library.
|
---|
8 |
|
---|
9 |
|
---|
10 | Here are the main changes since ZLib.Ada 1.1:
|
---|
11 |
|
---|
12 | - The default header type has a name "Default" now. Auto is used only for
|
---|
13 | automatic GZip/ZLib header detection.
|
---|
14 |
|
---|
15 | - Added test for multitasking mtest.adb.
|
---|
16 |
|
---|
17 | - Added GNAT project file zlib.gpr.
|
---|
18 |
|
---|
19 |
|
---|
20 | How to build ZLib.Ada under GNAT
|
---|
21 |
|
---|
22 | You should have the ZLib library already build on your computer, before
|
---|
23 | building ZLib.Ada. Make the directory of ZLib.Ada sources current and
|
---|
24 | issue the command:
|
---|
25 |
|
---|
26 | gnatmake test -largs -L<directory where libz.a is> -lz
|
---|
27 |
|
---|
28 | Or use the GNAT project file build for GNAT 3.15 or later:
|
---|
29 |
|
---|
30 | gnatmake -Pzlib.gpr -L<directory where libz.a is>
|
---|
31 |
|
---|
32 |
|
---|
33 | How to build ZLib.Ada under Aonix ObjectAda for Win32 7.2.2
|
---|
34 |
|
---|
35 | 1. Make a project with all *.ads and *.adb files from the distribution.
|
---|
36 | 2. Build the libz.a library from the ZLib C sources.
|
---|
37 | 3. Rename libz.a to z.lib.
|
---|
38 | 4. Add the library z.lib to the project.
|
---|
39 | 5. Add the libc.lib library from the ObjectAda distribution to the project.
|
---|
40 | 6. Build the executable using test.adb as a main procedure.
|
---|
41 |
|
---|
42 |
|
---|
43 | How to use ZLib.Ada
|
---|
44 |
|
---|
45 | The source files test.adb and read.adb are small demo programs that show
|
---|
46 | the main functionality of ZLib.Ada.
|
---|
47 |
|
---|
48 | The routines from the package specifications are commented.
|
---|
49 |
|
---|
50 |
|
---|
51 | Homepage: http://zlib-ada.sourceforge.net/
|
---|
52 | Author: Dmitriy Anisimkov <[email protected]>
|
---|