I�m using the Palm version of ZLib.h (SysZLib.h). I can use almost every functions of zlib.h (inflate, deflate, etc). But I cant use the gz functions of zlib.h (gzopen(), gzclose(), etc). Maybe this functions are undefined at SysZlib.prc. So I cant inflate *.gz files. I really need help! Thanks everybody!
Marco ----- Original Message ----- From: "LionScribe" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday, September 09, 2004 10:16 PM Subject: Re: Problems with zlib.h > You are most probably using the standard ZLib.h file, when you should be > using the Palm version (usually it's called SysZLib.h). > The declarations there look something like this; > /* Function declarations */ > Err ZLibOpen(UInt refNum) SYS_TRAP(sysLibTrapOpen); > Err ZLibClose(UInt refNum, UIntPtr numappsP) SYS_TRAP(sysLibTrapClose); > Err ZLibSleep(UInt refNum) SYS_TRAP(sysLibTrapSleep); > Err ZLibWake(UInt refNum) SYS_TRAP(sysLibTrapWake); > > > > LionScribe > > > > "Marco Furlanetto" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hello, > > > > Im trying to use the zlib.h for Palm. Im trying to use the gz functions, > > but > > it gives Linker Error. > > This is a part of the code: > > FileHand strFileToZip = FileOpen(0,"teste2.txt", sysFileTFileStream, > > > > 'M3Cl', fileModeReadOnly, &error); > > > > gzFile zippedFile = gzopen("teste2.txt.gz", "wb"); > > > > FileTell(strFileToZip,(long *) &itotal, NULL); > > > > ZLSetup; > > > > ... > > > > And the debugger: > > > > > > Link Error : ZipPalm.cpp: 'gzopen' referenced from 'ZipPalm::GZCompress()' > > is undefined. > > > > Link Error : ZipPalm.cpp: 'gzwrite' referenced from > > 'ZipPalm::GZCompress()' > > is undefined. > > > > Link Error : ZipPalm.cpp: 'gzclose' referenced from > > 'ZipPalm::GZCompress()' > > is undefined. > > > > > > > > I think everything is all right (all the headers), maybe anyone knows what > > is happening. > > Thanks a lot! > > > > Marco > > > > > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
