Page 1 of 1

Ads link errors using REQUEST _ADS xHarbour 99.51 FTDN Nov05

Posted: Mon Nov 21, 2005 8:10 pm
by Rick Lipkin
To All

For anyone using the latest xHarbour from the Nov FTDN FWH27 build and linking in ADS .. you will need to change your code to use the ANNOUNCE command on the ADS line and not REQUEST .. if you do not, you will get this error ... Error: Unresolved external '_HB_FUN__ADS'

Regards,
Rick Lipkin
SC Dept of Health, USA

IF xRDD = "ADS"

ANNOUNCE _ADS
* REQUEST _ADS // does not work with latest xharbour cvs
rddRegister ( "ADS", 1 )
rddsetdefault( "ADS" )
SET SERVER REMOTE
SET FILETYPE to CDX

cADS := " Remote 32 bit -b"

ELSE

cADS := " Local 32 bit -b"

REQUEST DBFCDX
REQUEST DBFFPT
rddsetdefault( "DBFCDX" )

ENDIF

SET DEFA to ( cDEFA )
cRDD := dbSETDRIVER()+cADS

Posted: Mon Nov 21, 2005 8:18 pm
by Rick Lipkin
To All

Got this responce from Ron in the xHarbour NG ..

Rick,

> I just got the Nov FWH27 FTDN that has the latest CVS version of xHarbour.
> Somewhere I remember seeing that there was a change to the REQUEST and
> ANNOUNCE commands.
>
> I just went to re-compile one of my ADS applications and I got the
> following link error :
>
> C:\BORLAND\BCC55\BIN\ilink32 @makefile.lnk
> Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
> Error: Unresolved external '_HB_FUN__ADS' referenced from
> C:\FOX\VEHFWH\MAIN.OBJ

No change to the command, it's just that _ADS was renamed ADS, so just
change:

REQUEST _ADS

to:

REQUEST ADS

> Knowing that I had seen this .. I changed the REQUEST _ADS line to
> ANNOUNCE _ADS and my app linked properly and runs just fine

Please restore as per above.

> Just curious .. I have several other apps that just use DBFCDX and they
> seem to compile properly .. for the sake of sinplicity .. should I change
> all my REQUEST statements to ANNOUNCE ??

Nop.

Ron

Posted: Mon Nov 21, 2005 10:03 pm
by Antonio Linares
Rick,

Thanks for your feedback,