FWH & xHarbour unresolved externals

Post Reply
Randal
Posts: 288
Joined: Mon Oct 24, 2005 8:04 pm

FWH & xHarbour unresolved externals

Post 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
User avatar
alerchster
Posts: 154
Joined: Mon Oct 22, 2012 4:43 pm

Re: FWH & xHarbour unresolved externals

Post by alerchster »

xhb.lib
Regards

Ing. Anton Lerchster
Randal
Posts: 288
Joined: Mon Oct 24, 2005 8:04 pm

Re: FWH & xHarbour unresolved externals

Post 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
User avatar
karinha
Posts: 8720
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: FWH & xHarbour unresolved externals

Post 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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
Posts: 8720
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: FWH & xHarbour unresolved externals

Post 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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Post Reply