FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hb_base64 link
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Wed Sep 07, 2022 05:36 PM
One thing at a time.

Code (fw): Select all Collapse
rdd.lib(dbcmdx.obj) : error LNK2005: _HB_FUN_DBPACK already defined in fivehmx.lib(ERTOOLS.obj)


First, why ERTOOLS.PRG is included in the final EXE? Second, what is this for:

Code (fw): Select all Collapse
*-- function -----------------------------------------------------------------
* Name........: DBPack
* Author......: 
*-----------------------------------------------------------------------------

function DBPack()

   PACK

return .T.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Wed Sep 07, 2022 05:37 PM

Third, why is it not included when Harbour is used? Or at least, why is DBPACK not signaled as duplicate definition?

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Wed Sep 07, 2022 05:52 PM

Ok, I understood: the problem is in the xHarbour rdd.lib. But the real problem is the request for LIBC. Who are requesting it?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hb_base64 link
Posted: Wed Sep 07, 2022 06:15 PM

Dear Enrico,

Have you tried using this flag: /NODEFAULTLIB:libc ?

What do you get ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Wed Sep 07, 2022 07:35 PM
Yes, of course. I get:

Code (fw): Select all Collapse
rdd.lib(dbcmdx.obj) : error LNK2005: _HB_FUN_DBPACK already defined in fivehmx.lib(ERTOOLS.obj)
rtl.lib(dllcall.obj) : error LNK2005: _HB_FUN_LOADLIBRARY already defined in fivehcm.lib(DLL.obj)
rtl.lib(dllcall.obj) : error LNK2005: _HB_FUN_FREELIBRARY already defined in fivehcm.lib(DLL.obj)
ct.lib(disk.obj) : error LNK2005: _HB_FUN_GETVOLINFO already defined in fivehmx.lib(OLDFUNC.obj)
fivehmx.lib(GETSYSIN.obj) : error LNK2019: unresolved external symbol _GetMonitorInfo referenced in function _HB_FUN_MONITORINFOFROMRC
fivehmx.lib(GETSYSIN.obj) : error LNK2019: unresolved external symbol _MonitorFromPoint referenced in function _HB_FUN_MONITORINFOFROMRC
fivehmx.lib(GETSYSIN.obj) : error LNK2019: unresolved external symbol _MonitorFromWindow referenced in function _HB_FUN_MONITORINFOFROMRC
fivehcm.lib(WINDOWS.obj) : error LNK2019: unresolved external symbol _SetClassLongPtr referenced in function _HB_FUN_SETCLASSLONG
fivehcm.lib(WINDOWS.obj) : error LNK2019: unresolved external symbol _GetClassLongPtr referenced in function _HB_FUN_GETCLASSLONG
fivehcm.lib(KEYBRD.obj) : error LNK2019: unresolved external symbol _SendInput referenced in function _HB_FUN_SENDKEY
fivehcm.lib(RIBBON.obj) : error LNK2019: unresolved external symbol _PrintWindow referenced in function _ParentCapture
fivehcm.lib(WNDPRINT.obj) : error LNK2001: unresolved external symbol _PrintWindow
fivehcm.lib(CTRL2CHR.obj) : error LNK2019: unresolved external symbol _GetDCBrushColor referenced in function _HB_FUN_CTRLGETBACKCOLOR
fivehcm.lib(MENUDRAW.obj) : error LNK2019: unresolved external symbol _GetMenuInfo referenced in function _HB_FUN_HBMPBACK
fivehcm.lib(MENUDRAW.obj) : error LNK2019: unresolved external symbol _SetMenuInfo referenced in function _hsetbmpback
fivehcm.lib(MENUDRAW.obj) : error LNK2019: unresolved external symbol _GetMenuBarInfo referenced in function _HB_FUN_MINFOMIMENU
fivehcm.lib(NONCLIENT.obj) : error LNK2019: unresolved external symbol _GetComboBoxInfo referenced in function _HB_FUN_HWNDCOMBO
fivehcm.lib(NONCLIENT.obj) : error LNK2019: unresolved external symbol _GetListBoxInfo referenced in function _HB_FUN_NGETLISTBOXINFO
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hb_base64 link
Posted: Wed Sep 07, 2022 08:28 PM

Please link user32.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Thu Sep 08, 2022 07:54 AM

Please note that there is no problem with MSC and xHarbour in console mode, only with FWH.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Thu Sep 08, 2022 08:35 AM

I just ask Mel to build xHarbour with MSC2022. I'll try it and let you know.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hb_base64 link
Posted: Thu Sep 08, 2022 02:29 PM

Dear Enrico,

many thanks for all the tests and effort that you are doing

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Fri Sep 09, 2022 03:39 PM
A question: why do we have to link xhb.lib with Harbour? What is it for?

Code (fw): Select all Collapse
echo %HDIRLIB%\xhb.lib >> msvc.tmp
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hb_base64 link
Posted: Fri Sep 09, 2022 03:58 PM
Enrico Maria Giordano wrote:A question: why do we have to link xhb.lib with Harbour? What is it for?

Code (fw): Select all Collapse
echo %HDIRLIB%\xhb.lib >> msvc.tmp

Dear Enrico,

That library implements some xHarbour functions

https://github.com/harbour/core/tree/master/contrib/xhb
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Fri Sep 09, 2022 05:18 PM
Yes, but why is it always needed?

Code (fw): Select all Collapse
fiveh32.lib(WINDOW.obj) : error LNK2001: unresolved external symbol _HB_FUN_STRTOHEX
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_STRTOHEX
fiveh32.lib(TRECSET.obj) : error LNK2001: unresolved external symbol _HB_FUN_STRTOHEX
fiveh32.lib(WINDOW.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEXTOSTR
fiveh32.lib(IMGTXTIO.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEXTOSTR
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEXTOSTR
fiveh32.lib(PGSUPORT.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEXTOSTR
fiveh32.lib(WINDOW.obj) : error LNK2001: unresolved external symbol _HB_FUN_NOTIFY
fiveh32.lib(DATAROW.obj) : error LNK2001: unresolved external symbol _HB_FUN_CTOT
fiveh32.lib(TRECSET.obj) : error LNK2001: unresolved external symbol _HB_FUN_CTOT
fiveh32.lib(VALBLANK.obj) : error LNK2001: unresolved external symbol _HB_FUN_CTOT
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_CTOT
fiveh32.lib(TARRDATA.obj) : error LNK2001: unresolved external symbol _HB_FUN_CTOT
fiveh32.lib(DBFFUNC2.obj) : error LNK2001: unresolved external symbol _HB_FUN_CTOT
fiveh32.lib(VALBLANK.obj) : error LNK2001: unresolved external symbol _HB_FUN_HCLONE
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_HCLONE
fiveh32.lib(DATAROW.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEVAL
fiveh32.lib(VALBLANK.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEVAL
fiveh32.lib(VALTOSTR.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEVAL
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEVAL
fiveh32.lib(DBFFUNC2.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEVAL
fiveh32.lib(VALBLANK.obj) : error LNK2001: unresolved external symbol _HB_FUN_HSET
fiveh32.lib(DBFFUNC2.obj) : error LNK2001: unresolved external symbol _HB_FUN_HSET
fiveh32.lib(DATAROW.obj) : error LNK2001: unresolved external symbol _HB_FUN_HSET
fiveh32.lib(RTFBOX.obj) : error LNK2019: unresolved external symbol _HB_FUN_NUMTOHEX referenced in function _HB_FUN_RTFBOX
fiveh32.lib(VALBLANK.obj) : error LNK2001: unresolved external symbol _HB_FUN_NUMTOHEX
fiveh32.lib(MSGBAR.obj) : error LNK2001: unresolved external symbol _HB_FUN_NUMTOHEX
fiveh32.lib(BAR.obj) : error LNK2001: unresolved external symbol _HB_FUN_NUMTOHEX
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_NUMTOHEX
fiveh32.lib(TRECSET.obj) : error LNK2001: unresolved external symbol _HB_FUN_TOLEAUTO
fiveh32.lib(HARBOUR.obj) : error LNK2001: unresolved external symbol _HB_FUN_TOLEAUTO
fiveh32.lib(OLEFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_TOLEAUTO
fiveh32.lib(ACTIVEX.obj) : error LNK2001: unresolved external symbol _HB_FUN_TOLEAUTO
fiveh32.lib(ADOFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_TOLEAUTO
fiveh32.lib(WEBAPP.obj) : error LNK2001: unresolved external symbol _HB_FUN_HASH
fiveh32.lib(TGET.obj) : error LNK2001: unresolved external symbol _HB_FUN_DATETIME
fiveh32.lib(PRV2PDF.obj) : error LNK2001: unresolved external symbol _HB_FUN_DATETIME
fiveh32.lib(ADOFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_DATETIME
fiveh32.lib(VALTOSTR.obj) : error LNK2001: unresolved external symbol _HB_FUN_OCCURS
fiveh32.lib(FILENAME.obj) : error LNK2001: unresolved external symbol _HB_FUN_OCCURS
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_OCCURS
fiveh32.lib(TARRDATA.obj) : error LNK2001: unresolved external symbol _HB_FUN_OCCURS
fiveh32.lib(VALTOSTR.obj) : error LNK2001: unresolved external symbol _HB_FUN_ANSITOWIDE
fiveh32.lib(PRV2PDF.obj) : error LNK2001: unresolved external symbol _HB_FUN_ANSITOWIDE
fiveh32.lib(TGDIPLUS.obj) : error LNK2001: unresolved external symbol _HB_FUN_ANSITOWIDE
fiveh32.lib(TRICHED5.obj) : error LNK2001: unresolved external symbol _HB_FUN_ANSITOWIDE
fiveh32.lib(PDMENU.obj) : error LNK2001: unresolved external symbol _HB_FUN_OS_ISWTSCLIENT
fiveh32.lib(MENU.obj) : error LNK2001: unresolved external symbol _HB_FUN_OS_ISWTSCLIENT
fiveh32.lib(PGSUPORT.obj) : error LNK2019: unresolved external symbol _HB_FUN_HB_FUNCPTR referenced in function _HB_FUN_FWPG_GOTOKEYVAL
fiveh32.lib(PRINTER.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_FUNCPTR
fiveh32.lib(FWBARCOD.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_FUNCPTR
fiveh32.lib(CHECKRES.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_FUNCPTR
fiveh32.lib(ADOFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_FUNCPTR
fiveh32.lib(IMGTXTIO.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEXTONUM
fiveh32.lib(RTFBOX.obj) : error LNK2001: unresolved external symbol _HB_FUN_HEXTONUM
fiveh32.lib(FWDECODE.obj) : error LNK2001: unresolved external symbol _HB_FUN_HHASKEY
fiveh32.lib(FWDECODE.obj) : error LNK2001: unresolved external symbol _HB_FUN_RASCAN
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_HSETCASEMATCH
fiveh32.lib(DBFFUNC2.obj) : error LNK2001: unresolved external symbol _HB_FUN_HSETCASEMATCH
fiveh32.lib(DATAROW.obj) : error LNK2001: unresolved external symbol _HB_FUN_HSETCASEMATCH
fiveh32.lib(TRECSET.obj) : error LNK2001: unresolved external symbol _HB_FUN_HSETCASEMATCH
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_HMERGE
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_DECODE
fiveh32.lib(PGSUPORT.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_DECODE
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_WILDMATCH
fiveh32.lib(TARRDATA.obj) : error LNK2001: unresolved external symbol _HB_FUN_WILDMATCH
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_TTOS
fiveh32.lib(PRV2PDF.obj) : error LNK2001: unresolved external symbol _HB_FUN_TTOS
fiveh32.lib(DBFFUNC2.obj) : error LNK2001: unresolved external symbol _HB_FUN_TTOS
fiveh32.lib(ADOFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_TTOS
fiveh32.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol _HB_FUN_ATSKIPSTRINGS
fiveh32.lib(DBFFUNC1.obj) : error LNK2001: unresolved external symbol _HB_FUN_ATSKIPSTRINGS
fiveh32.lib(ADOFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_ATSKIPSTRINGS
fiveh32.lib(VSTRFUN1.obj) : error LNK2001: unresolved external symbol _HB_FUN_HGETPAIRAT
fiveh32.lib(IMAGEB64.obj) : error LNK2001: unresolved external symbol _HB_FUN_WIDETOANSI
fiveh32.lib(TRICHED5.obj) : error LNK2001: unresolved external symbol _HB_FUN_WIDETOANSI
fiveh32.lib(DBFFUNC1.obj) : error LNK2001: unresolved external symbol _HB_FUN_VALTOPRGEXP
fiveh32.lib(DATAROW.obj) : error LNK2001: unresolved external symbol _HB_FUN_VALTOPRGEXP
fiveh32.lib(IMAGE.obj) : error LNK2001: unresolved external symbol _HB_FUN_CREATEOBJECT
fiveh32.lib(OLEFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_CREATEOBJECT
fiveh32.lib(TRICHED5.obj) : error LNK2001: unresolved external symbol _HB_FUN_CREATEOBJECT
fiveh32.lib(OLEFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_GETACTIVEOBJECT
fiveh32.lib(TRICHED5.obj) : error LNK2001: unresolved external symbol _HB_FUN_I18N
fiveh32.lib(DBFFUNC2.obj) : error LNK2001: unresolved external symbol _HB_FUN_STOT
fiveh32.lib(ADOFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_EXEC
fiveh32.lib(ADOFUNCS.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_REGEXREPLACE
fiveh32.lib(DATAROW.obj) : error LNK2001: unresolved external symbol _HB_FUN_HB_ENUMINDEX
fiveh32.lib(TRECSET.obj) : error LNK2001: unresolved external symbol _HB_FUN_HGETCASEMATCH
fiveh32.lib(ERFILE.obj) : error LNK2001: unresolved external symbol _HB_FUN_MESSAGEBOX
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hb_base64 link
Posted: Sat Sep 10, 2022 07:39 AM

Because we have used functions from it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hb_base64 link
Posted: Sat Sep 10, 2022 07:56 AM

Are you using xHarbour functions from Harbour? Ok, but why? I don't understand.