Enrico Maria Giordano
Posts: 8753 Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:
Post
by Enrico Maria Giordano » Wed Sep 07, 2022 5:36 pm
One thing at a time.
Code: Select all | Expand
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
*-- function ----------------------------------------------------------------- * Name ........: DBPack * Author......: * -----------------------------------------------------------------------------function DBPack( ) PACKreturn .T.
Enrico Maria Giordano
Posts: 8753 Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:
Post
by Enrico Maria Giordano » Wed Sep 07, 2022 5:37 pm
Third, why is it not included when Harbour is used? Or at least, why is DBPACK not signaled as duplicate definition? EMG
Enrico Maria Giordano
Posts: 8753 Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:
Post
by Enrico Maria Giordano » Wed Sep 07, 2022 5: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?
Antonio Linares
Site Admin
Posts: 42511 Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:
Post
by Antonio Linares » Wed Sep 07, 2022 6:15 pm
Dear Enrico, Have you tried using this flag: /NODEFAULTLIB:libc ? What do you get ?
Enrico Maria Giordano
Posts: 8753 Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:
Post
by Enrico Maria Giordano » Wed Sep 07, 2022 7:35 pm
Yes, of course. I get:
Code: Select all | Expand
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
Enrico Maria Giordano
Posts: 8753 Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:
Post
by Enrico Maria Giordano » Fri Sep 09, 2022 5:18 pm
Yes, but why is it always needed?
Code: Select all | Expand
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