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/
