Page 2 of 4

Re: hb_base64 link

PostPosted: Wed Sep 07, 2022 5:36 pm
by Enrico Maria Giordano
One thing at a time.

Code: Select all  Expand view
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: Select all  Expand view
*-- function -----------------------------------------------------------------
* Name........: DBPack
* Author......:
*-----------------------------------------------------------------------------

function DBPack()

   PACK

return .T.

Re: hb_base64 link

PostPosted: Wed Sep 07, 2022 5:37 pm
by Enrico Maria Giordano
Third, why is it not included when Harbour is used? Or at least, why is DBPACK not signaled as duplicate definition?

EMG

Re: hb_base64 link

PostPosted: Wed Sep 07, 2022 5:52 pm
by Enrico Maria Giordano
Ok, I understood: the problem is in the xHarbour rdd.lib. But the real problem is the request for LIBC. Who are requesting it?

Re: hb_base64 link

PostPosted: Wed Sep 07, 2022 6:15 pm
by Antonio Linares
Dear Enrico,

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

What do you get ?

Re: hb_base64 link

PostPosted: Wed Sep 07, 2022 7:35 pm
by Enrico Maria Giordano
Yes, of course. I get:

Code: Select all  Expand view
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

Re: hb_base64 link

PostPosted: Wed Sep 07, 2022 8:28 pm
by Antonio Linares
Please link user32.lib

Re: hb_base64 link

PostPosted: Wed Sep 07, 2022 9:39 pm
by Enrico Maria Giordano
Already linked.

Re: hb_base64 link

PostPosted: Thu Sep 08, 2022 7:54 am
by Enrico Maria Giordano
Please note that there is no problem with MSC and xHarbour in console mode, only with FWH.

Re: hb_base64 link

PostPosted: Thu Sep 08, 2022 8:35 am
by Enrico Maria Giordano
I just ask Mel to build xHarbour with MSC2022. I'll try it and let you know.

Re: hb_base64 link

PostPosted: Thu Sep 08, 2022 2:29 pm
by Antonio Linares
Dear Enrico,

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

Re: hb_base64 link

PostPosted: Fri Sep 09, 2022 3:39 pm
by Enrico Maria Giordano
A question: why do we have to link xhb.lib with Harbour? What is it for?

Code: Select all  Expand view
echo %HDIRLIB%\xhb.lib >> msvc.tmp

Re: hb_base64 link

PostPosted: Fri Sep 09, 2022 3:58 pm
by Antonio Linares
Enrico Maria Giordano wrote:A question: why do we have to link xhb.lib with Harbour? What is it for?

Code: Select all  Expand view
echo %HDIRLIB%\xhb.lib >> msvc.tmp

Dear Enrico,

That library implements some xHarbour functions

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

Re: hb_base64 link

PostPosted: Fri Sep 09, 2022 5:18 pm
by Enrico Maria Giordano
Yes, but why is it always needed?

Code: Select all  Expand view
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

Re: hb_base64 link

PostPosted: Sat Sep 10, 2022 7:39 am
by Antonio Linares
Because we have used functions from it :-)

Re: hb_base64 link

PostPosted: Sat Sep 10, 2022 7:56 am
by Enrico Maria Giordano
Are you using xHarbour functions from Harbour? Ok, but why? I don't understand.