J. Peter Mugaas wrote:
On Thu, 13 Apr 2006 12:11:36 -0300, Felipe Monteiro de Carvalho wrote:

Hello,

Just one note.

You don´t need to use a external dll to use the c version. On a
Delphi project of mine I use ZLibEx.pas

It is a pascal file that statically imports .o files compiled from
the "official" c sources using c++ builder and offers some Stream
objects to use ZLib with TFileStream (or other streams you want to
use), so it´s really easy to use.

You can download it here:

http://www.dellapasqua.com/delphizlib/

It was created by Borland and Base2 technologies and is the version
distributed with Delphi.

There are some issues however:

1 - Windows only

2 - Was made with Delphi in mind, so may need some minor changes to
compile with Free Pascal, like adding {$mode delphi}


That is based on ZLib 1.2.2 and ZLib 1.2.2 has a Cert warnings about a security 
flaws.

http://www.kb.cert.org/vuls/id/238678
http://www.kb.cert.org/vuls/id/680620

ZLib 1.2.3 fixes those.   The thing is that FreePascal might not be able to use 
standard .obj files in Windows (at least that's what everyone was telling me) 
and that has to do with the ld linker.  Even if that does work, there would 
probably have to some Makefile rules for handling the object files (such as 
place them in the compiled units dir) and I was told I would have to write my 
own rules for that and I have not yet been able to do this because I don't know 
how).

I just happened to download the 1.2.3 ZLibEx version for delphi here:
http://www.base2ti.com/cgi-bin/download.exe?folder=delphi+zlib&file=delphi+zlib+1.2.3

Marc
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to