FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Can´t produce .exe with MSVC 2019 [solved]
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Can´t produce .exe with MSVC 2019 [solved]
Posted: Thu Jan 30, 2020 05:41 PM

Hello,

I get this errors when linking:

LINK : warning LNK4098: la biblioteca predeterminada'MSVCRT' entra en conflicto con otras bibliotecas; use la biblioteca /NODEFAULTLIB:biblioteca
fiveh32.lib(VALTOSTR.obj) : error LNK2001: símbolo externo _HB_FUN_HB_TSTOUTC sin resolver
fiveh32.lib(VSTRFUN1.obj) : error LNK2019: símbolo externo _hb_strAtI sin resolver al que se hace referencia en la función _HB_FUN_FW_ATIC
hbvm.lib(hvmall.obj) : error LNK2019: símbolo externo iobfunc sin resolver al que se hace referencia en la función "void cdecl internal_malloc_stats(struct malloc_state )" (?internal_malloc_stats@@YAXPAUmalloc_state@@@Z)
rddcdx.lib(dbfcdx1.obj) : error LNK2001: símbolo externo iobfunc sin resolver
hbcplr.lib(hbcomp.obj) : error LNK2001: símbolo externo
_iob_func sin resolver
hbpp.lib(ppcore.obj) : error LNK2001: símbolo externo iobfunc sin resolver
rddcdx.lib(dbfcdx1.obj) : error LNK2019: símbolo externo _printf sin resolver al que se hace referencia en la función "struct _CDXKEY *
cdecl hb_cdxKeyPutItem(struct _CDXKEY
,void ,unsigned long,struct _CDXTAG ,int,int)" (?hb_cdxKeyPutItem@@YAPAU_CDXKEY@@PAU1@PAXKPAU_CDXTAG@@HH@Z)
hbpp.lib(ppcore.obj) : error LNK2001: símbolo externo _printf sin resolver
MSVCRT.lib(chandler4gs.obj) : error LNK2019: símbolo externo __except_handler4_common sin resolver al que se hace referencia en la función __except_handler4
demo.exe : fatal error LNK1120: 5 externos sin resolver

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Can´t produce .exe with MSVC 2019
Posted: Fri Jan 31, 2020 08:59 AM

Moises,

Are you using buildh32.bat to build it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Re: Can´t produce .exe with MSVC 2019
Posted: Fri Jan 31, 2020 10:17 AM

No, I am compiling a complex application. I use the previous working MSVC 2010 script updated to MSVC 2019 paths.
Thank you.

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Re: Can´t produce .exe with MSVC 2019
Posted: Fri Jan 31, 2020 10:46 AM

Antonio,

These are complete libs requiered:

MSVC_LIB=kernel32 user32 gdi32 winspool comctl32 comdlg32 advapi32 shell32 ole32 oleaut32\
uuid odbc32 odbccp32 iphlpapi mpr version wsock32 wininet msimg32 oledlg psapi gdiplus winmm vfw32 runtimeobject ws2_32 shlwapi strmiids urlmon vcruntime

Already solved.

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40

Continue the discussion