FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ZIP files with Harbour, MSVC, and FWH
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
ZIP files with Harbour, MSVC, and FWH
Posted: Sun Jun 17, 2018 05:42 AM
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 (fw): Select all Collapse
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.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ZIP files with Harbour, MSVC, and FWH
Posted: Sun Jun 17, 2018 06:36 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: ZIP files with Harbour, MSVC, and FWH
Posted: Tue Jun 19, 2018 11:44 PM

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion