Re: [lazarus] Win32 compilation error : Import library not found for libz
Hi all, Anyone have any ideas? Dominique Dominique Louis wrote: My uses clause is as follows uses Zlib, // To avoid linking to objects Sysutils, Classes; This works fine on Mac OS X, but on Win32 I get the error mentioned. Yes I'm using the zlib that ships with FPC. Dominique. Graeme Geldenhuys wrote: Are you using/linking a external (.dll or .so) or are you using the zlib unit (implementation in object pascal) included with FPC? Regards, - Graeme - On 30/01/2008, Dominique Louis [EMAIL PROTECTED] wrote: Hi all, I've just been trying to compile some code that makes use of Zlib and when I try to compile it from within Lazarus I get the following error Error: Import library not found for libz at the linking stage. It's the only thing stopping it from linking. Is this a bug in FPC 2.2.1 or am I missing the libz.o file? I'm using the snapshot from 27th of Jan 2008, if that makes any difference. Thanks, Dominique. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Win32 compilation error : Import library not found for libz
Dominique Louis schreef: Hi all, Anyone have any ideas? Yes, drop zlib and use paszlib. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Win32 compilation error : Import library not found for libz
Marco van de Voort wrote: I've just been trying to compile some code that makes use of Zlib and when I try to compile it from within Lazarus I get the following error Error: Import library not found for libz at the linking stage. It's the only thing stopping it from linking. Is this a bug in FPC 2.2.1 or am I missing the libz.o file? I'm using the snapshot from 27th of Jan 2008, if that makes any difference. The zlib unit simply links to the zlib library (libz.so libz.dll). It seems that you are missing that one. IOW it is different from the borland one that does have a zlib implementation The paszlib package provides an compatible (though older) zlib implementation in pascal. Ok, but shouldn't it work with both? Are there any plans to update paszlib to a more recent version of zlib? Dominique. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Win32 compilation error : Import library not found for libz
Ok, but shouldn't it work with both? Vincent Snijders wrote: Dominique Louis schreef: Hi all, Anyone have any ideas? Yes, drop zlib and use paszlib. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re[2]: [lazarus] Win32 compilation error : Import library not found for libz
Hello Dominique, Saturday, February 9, 2008, 8:42:46 PM, you wrote: DL Marco van de Voort wrote: I've just been trying to compile some code that makes use of Zlib and when I try to compile it from within Lazarus I get the following error DL Ok, but shouldn't it work with both? DL Are there any plans to update paszlib to a more recent version of zlib? Yes, and it works (I'm using both with a $DEFINE) but the zlib needs zlib1.dll which is AFAIK the regular zlib.dll renamed (reason unknown). {$ifdef netware} {zlib.nlm comes with netware6} libz='zlib'; {$else} {$ifdef windows} libz='zlib1'; {$else windows} libz='z'; {$endif windows} {$endif} paszlib is 1.1.2 meanwhile zlib is 1.1.3 and AFAIK the difference is related to a NULL pointer in the 'C' version which may be present or not in the Pascal version, but as it has not been updated I think that the paszlib is not affected by the bug. -- Best regards, JoshyFunmailto:[EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Win32 compilation error : Import library not found for libz
Dominique Louis schreef: Ok, but shouldn't it work with both? If you have a compatible zlib dll. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Win32 compilation error : Import library not found for libz
My uses clause is as follows uses Zlib, // To avoid linking to objects Sysutils, Classes; This works fine on Mac OS X, but on Win32 I get the error mentioned. Yes I'm using the zlib that ships with FPC. Dominique. Graeme Geldenhuys wrote: Are you using/linking a external (.dll or .so) or are you using the zlib unit (implementation in object pascal) included with FPC? Regards, - Graeme - On 30/01/2008, Dominique Louis [EMAIL PROTECTED] wrote: Hi all, I've just been trying to compile some code that makes use of Zlib and when I try to compile it from within Lazarus I get the following error Error: Import library not found for libz at the linking stage. It's the only thing stopping it from linking. Is this a bug in FPC 2.2.1 or am I missing the libz.o file? I'm using the snapshot from 27th of Jan 2008, if that makes any difference. Thanks, Dominique. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Win32 compilation error : Import library not found for libz
Hi all, I've just been trying to compile some code that makes use of Zlib and when I try to compile it from within Lazarus I get the following error Error: Import library not found for libz at the linking stage. It's the only thing stopping it from linking. Is this a bug in FPC 2.2.1 or am I missing the libz.o file? I'm using the snapshot from 27th of Jan 2008, if that makes any difference. Thanks, Dominique. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Win32 compilation error : Import library not found for libz
Are you using/linking a external (.dll or .so) or are you using the zlib unit (implementation in object pascal) included with FPC? Regards, - Graeme - On 30/01/2008, Dominique Louis [EMAIL PROTECTED] wrote: Hi all, I've just been trying to compile some code that makes use of Zlib and when I try to compile it from within Lazarus I get the following error Error: Import library not found for libz at the linking stage. It's the only thing stopping it from linking. Is this a bug in FPC 2.2.1 or am I missing the libz.o file? I'm using the snapshot from 27th of Jan 2008, if that makes any difference. Thanks, Dominique. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives