hari_poddar2009 wrote:
> i need to write a program that checks for the existence of a file in the 
> application data folder referred by the environment variable %APPDATA%. If it 
> does not exist the file will be created, written to, compressed and closed. 
> if it exists then the file will be opened using LZOPenFile(). The end of file 
> will be sought and the file will be written to. Then the file will be closed 
> with LZClose(). My code is listed below:
> 
<snip>
> i am using the lcc win32 compiler and am getting the error message:
> "undefined reference to _lzopenf...@12" in the line which calls 
> INT result=LZOpenFile(name2ptr,openPtr,OF_READWRITE);
> please help!

This is a linker issue.  You probably need to add 'lz32.lib' to the 
linker dependency/library options.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to