Page 1 of 1

ZIP files with Harbour, MSVC, and FWH

Posted: Sun Jun 17, 2018 5:42 am
by TimStone
I have tried to build an application previously constructed with the commercial version of xHarbour, but now trying to use Harbour, FWH 18.04, and MSVC++ 2017.

I have included the harbour libraries: hbziparc, hbmzip, hbzlib, minizip

When building, I have the following undefined variables:

Code: Select all | Expand


MLS10aus.obj : error LNK2001: unresolved external symbol _HB_FUN_ZIPNEW
MLS10aus.obj : error LNK2001: unresolved external symbol _HB_FUN_ZIPOPEN
MLS10aus.obj : error LNK2001: unresolved external symbol _HB_FUN_ZIPGETLASTERROR
MLS10aus.obj : error LNK2001: unresolved external symbol _HB_FUN_ZIPSETFILEPATH
MLS10aus.obj : error LNK2001: unresolved external symbol _HB_FUN_ZIPSETEXTRACTPATH
MLS10aus.obj : error LNK2001: unresolved external symbol _HB_FUN_ZIPSETPASSWORD
MLS10aus.obj : error LNK2001: unresolved external symbol _HB_FUN_ZIPEXTRACTFILES
MLS10aus.obj : error LNK2001: unresolved external symbol _HB_FUN_ZIPCLOSE
 


These are the functions used with xHarbour. Either I need to add a .prg to reference these into the build, or Harbour uses a different set of function calls.

Does anyone have an idea about how to get these properly linked / called ?

Thanks.

Re: ZIP files with Harbour, MSVC, and FWH

Posted: Sun Jun 17, 2018 6:36 am
by Antonio Linares

Re: ZIP files with Harbour, MSVC, and FWH

Posted: Tue Jun 19, 2018 11:44 pm
by TimStone
Antonio,

You can include the files in a build, but if you try calling these methods they will error out. Harbour uses other methods ...

I finally resolved that ...

Tim