Install Indy 9 problem lazarus / 13-General ---------------------------------------------------------------------- battles · 2010-04-26 10:49 I am new to Lazarus but have years of Delphi 4 experience.  I am trying to install Indy 9 and have encountered the 2 errors below upon compiling.  Can anyone tell me how to get around the problem?  Thanks. Error messages: C:\AMisc\Lazarus\components\indy9\source\IdCompressionIntercept.pas(36 9,40) Error: Incompatible types: got "zlibAllocMem(Pointer, LongInt, LongInt):^untyped; CDecl;" expected "" C:\AMisc\Lazarus\components\indy9\source\IdCompressionIntercept.pas(37 8,42) Error: Incompatible types: got "zlibAllocMem(Pointer, LongInt, LongInt):^untyped; CDecl;" expected "" $(LazarusDir) Lazarus Procedure: procedure TIdCompressionIntercept.InitCompressors; begin   if not Assigned(FCompressRec.zalloc) then   begin     FCompressRec.zalloc := zlibAllocMem;  <--------- 1st error message points here     FCompressRec.zfree := zlibFreeMem;     if deflateInit_(FCompressRec, FCompressionLevel, zlib_Version, SizeOf(FCompressRec)) <> Z_OK then     begin       raise EIdCompressorInitFailure.Create(RSZLCompressorInitializeFailure);     end;   end;   if not Assigned(FDecompressRec.zalloc) then   begin     FDecompressRec.zalloc := zlibAllocMem;  <--------- 2nd error message points here     FDecompressRec.zfree := zlibFreeMem;     if inflateInit_(FDecompressRec, zlib_Version, SizeOf(FDecompressRec)) <> Z_OK then     begin       raise EIdDecompressorInitFailure.Create(RSZLDecompressorInitializeFailure);     end;   end; end; ---------------------------------------------------------------------- JuhaManninen · 2010-04-26 11:42 Where did you download Indy 9 from? Juha ---------------------------------------------------------------------- battles · 2010-04-26 12:28 http://www.stack.nl/~marcov/indy/indy9.zip Found it through here: http://wiki.lazarus.freepascal.org/index.php/Indy_with_Lazarus ---------------------------------------------------------------------- fredycc · 2010-04-26 12:36 Actually I have working, with Indy version indy-10.2.0.3.zip with a couple of problems but works for me: You can download from: http://www.indyproject.org/Sockets/fpc/index.en.aspx If you want to compress or decompress zip files I suggest: http://wiki.lazarus.freepascal.org/FreePascalArchivePackage. ---------------------------------------------------------------------- battles · 2010-04-26 13:36 Thanks!  That took care of the problem.  I had read that it was better to use Indy9, but Indy10 installed after fixing path problems.  I got some kind of exception upon Lazarus restarting, but Ok out.  I don't think that there will be any problems with that.   Your comment about using the other unpacker was good also.  I tried twice to unpack it with 7-zip, but it said that the zip file couldn't be unzipped.  I didn't install the one you suggested yet, but used the MS installed one to unzip it ok.