Error occurred during compiling of zip and uzip prgs.

Error occurred during compiling of zip and uzip prgs.

Postby Arindam » Sun Mar 18, 2007 3:07 am

Hello friends,

I am getting the following errors during compilation. Where should I edit the code to get correct result.

During compile of \fwh\sample\testzip.prg the following errors are occured.

testzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_ZIP
MSG(void)" (?HB_FUN_ZIPMSG@@YAXXZ)

testzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_ZIP
BLOCK(void)" (?HB_FUN_ZIPBLOCK@@YAXXZ)

testzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_ZIP
TYPE(void)" (?HB_FUN_ZIPTYPE@@YAXXZ)

testzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_ZIP
FILE(void)" (?HB_FUN_ZIPFILE@@YAXXZ)

testzip.exe : fatal error LNK1120: 4 unresolved externals
* There are errors

During compile of \fwh\sample\testuzip.prg the following errors are occured.

testuzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_CL
OSEZIPFILE(void)" (?HB_FUN_CLOSEZIPFILE@@YAXXZ)

testuzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_GE
TNEXTINZIP(void)" (?HB_FUN_GETNEXTINZIP@@YAXXZ)

testuzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_GE
TFIRSTINZIP(void)" (?HB_FUN_GETFIRSTINZIP@@YAXXZ)

testuzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_IS
ZIP(void)" (?HB_FUN_ISZIP@@YAXXZ)

testuzip.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_UN
ZIPFILE(void)" (?HB_FUN_UNZIPFILE@@YAXXZ)

testuzip.exe : fatal error LNK1120: 5 unresolved externals
* There are errors

Can any one help me?

With regards,
Arindam
Arindam
 
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Postby James Bott » Sun Mar 18, 2007 1:13 pm

Arindam,

You have to link in the zip library. It depends on which version of Harbour or xHarbour you are using which zip library(s) you need. I don't remember them all, but for xHarbour I use HBZIP.LIB. You can try searching the forum for the names of the others if you need them. I think the commercial version of xHarbour uses different libs.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Sun Mar 18, 2007 6:50 pm

Arindam,

samples\TestZip.prg is for FW 16 bits only
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Arindam » Mon Mar 19, 2007 2:11 pm

Antonio,

Thanks for your post reply.

From which sample should i get some idea on zip/unzip. Is there any 32 bits sample.

with regards,
Arindam
Arindam
 
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Postby Antonio Linares » Tue Mar 20, 2007 7:34 am

Arindam,

Have a look at Harbour/xharbour CVS files, tests directory
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Sun Nov 09, 2008 10:17 am

Is there somewhere a working zip-unzip- example for xHarbour/harbour?
Thanks in advance
Otto
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Postby toninhofwi » Sun Nov 09, 2008 11:39 am

Otto wrote:Is there somewhere a working zip-unzip- example for xHarbour/harbour?
Thanks in advance
Otto


Otto, see in harbour\contrib\hbziparc\tests

Regards,

Toninho.
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am

Postby Otto » Sun Nov 09, 2008 3:35 pm

Thank you, Toninho.
But I don't have a
harbour\contrib\hbziparc
directory in my harbour directory.
Regards,
Otto
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Postby James Bott » Sun Nov 09, 2008 5:24 pm

Otto,

Here is an example from an old message. The LIBs are in xHarbour\lib.

James

Code: Select all  Expand view
Posted: Tue Aug 26, 2008 8:37 pm    Post subject:   

--------------------------------------------------------------------------------

I use xHarbour's HB_ZIPFILE().

In its simplest form use:-
HB_ZIPFILE( cZipFile, aFiles2Zip)

Full spec is :

HB_ZIPFILE( <cFile>, <cFileToCompress> | <aFiles>, <nLevel>,;
<bBlock>, <lOverWrite>, <cPassword>, <lWithPath>,; <lWithDrive>, ; <pFileProgress> ) ---> lCompress

For unziping:

HB_UNZIPFILE( <cZipFile>, <bBlock>, <lWithPath>,;
<cPassWord>, <cPath>, <cFile> | <aFile>, <pFileProgress> ) ---> lCompress

Note that you must link HBZIP.lib and ZLIB.lib.

Works really well for me.

Colin
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests