Page 1 of 1

FWH & xHarbour unresolved externals

Posted: Tue Oct 21, 2025 2:52 pm
by Randal
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

Re: FWH & xHarbour unresolved externals

Posted: Tue Oct 21, 2025 3:04 pm
by alerchster
xhb.lib

Re: FWH & xHarbour unresolved externals

Posted: Tue Oct 21, 2025 3:10 pm
by Randal
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

Re: FWH & xHarbour unresolved externals

Posted: Tue Oct 21, 2025 3:33 pm
by karinha
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.

Re: FWH & xHarbour unresolved externals

Posted: Tue Oct 21, 2025 4:10 pm
by karinha
Example:

Code: Select all | Expand

// hb_default.prg

FUNCTION hb_Default( xVar, xValue )

  IF ValType( xVar ) == NIL
  
       xVar := xValue
     
  ENDIF
  
RETURN xVar
Or,

Code: Select all | Expand

FUNCTION hb_Default( xVar, xValue )
 	 
   IF ValType( xVar ) != ValType( xValue )
      xVar := xValue
   ENDIF
   
RETURN NIL
Regards, saludos.