FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH & xHarbour unresolved externals
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
FWH & xHarbour unresolved externals
Posted: Tue Oct 21, 2025 02:52 PM

Trying to compile testoutlook.prg in the \fwh\samples\outlook folder using xBuilder/xHarbour and getting unresolved externals on the following files:

xLINK: error: Unresolved external symbol '_HB_FUN_HB_DEFAULT referenced from (outlookmail.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_HB_VFEXISTS referenced from (testoutlook.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_HB_VFERASE referenced from (testoutlook.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_HB_MEMOREAD referenced from (testoutlook.obj)'.

What library do I need to link in order to resolve this?

Thanks,

Randal

Posts: 137
Joined: Mon Oct 22, 2012 04:43 PM
Re: FWH & xHarbour unresolved externals
Posted: Tue Oct 21, 2025 03:04 PM

xhb.lib

Regards



Ing. Anton Lerchster
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Re: FWH & xHarbour unresolved externals
Posted: Tue Oct 21, 2025 03:10 PM

I tried using xhb.lib from the 3/2025 version of xHarbour. Is there a later version of this lib I should be using?

Thanks,

Randal

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: FWH & xHarbour unresolved externals
Posted: Tue Oct 21, 2025 03:33 PM

Good afternoon, if I remember correctly, these commands are from HARBOUR, look for the equivalents in XHARBOUR.

Buenas tardes, si no recuerdo mal estos comandos son de HARBOUR, buscad los equivalentes en XHARBOUR.

Or show what you intend to do.

O muestra lo que pretendes hacer.

Gracias, tks.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: FWH & xHarbour unresolved externals
Posted: Tue Oct 21, 2025 04:10 PM
Example:
// hb_default.prg

FUNCTION hb_Default( xVar, xValue )

  IF ValType( xVar ) == NIL
  
       xVar := xValue
     
  ENDIF
  
RETURN xVar
Or,
FUNCTION hb_Default( xVar, xValue )
 	 
   IF ValType( xVar ) != ValType( xValue )
      xVar := xValue
   ENDIF
   
RETURN NIL
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion