FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error after update for FWH 7.11
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 12:41 AM

Hi,

Error: Unresolved external 'AdsCloseCachedTables' referenced from C:\XHARBOUR\LIB\RDDADS.LIB|adsfunc

Sds,
Vilian F. Arraes

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 01:35 AM

Vilian,

From http://www.xharbour.org/index.asp?page=news/20050324:

Added AdsCacheOpenTables() and AdsCacheOpenCursors() function. (for all versions Ads) and AdsCloseCachedTables() for Ads 7.x and above. ADS_REQUIRE_VERSION 7 must be set for the last function

Allow setting of ADS_REQUIRE_VERSION using compiler command line switch

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 01:58 AM

Antonio,

I did not understand. Not use AdsCloseCachedTables() in my system.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 08:58 AM
Vilian,

As a workaround try to add this code to your main PRG:
#pragma BEGINDUMP

void AdsCloseCachedTables( void ) {}

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 11:30 AM

Antonio,

Unhappyly it did not decide the problem.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 02:07 PM

Vilian,

If you are not using ADS, then there are two libs you should not be linking into you app. RDDADS.LIB and ACE32.LIB.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 03:40 PM

Vilian,

> Unhappyly it did not decide the problem.

Do you get the same error ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 05:44 PM
Antonio,

The error message is the same one:

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'AdsCloseCachedTables' referenced from C:\XHB\LIB\RDDADS.LIB|adsfunc


One will detail interesting that I observed is that in the installation of xHarbour that comes with FWH 7.11 does not have the Ace32.lib archive.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 07:57 PM

Vilian,

> does not have the Ace32.lib archive

Thats because you have to create that library yourself from the used ACE32.dll:

implib.exe Ace32.lib Ace32.dll

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 08:03 PM
Vilian,

Try it this way:
#pragma BEGINDUMP 

#include <windows.h>

void pascal AdsCloseCachedTables( void ) 
{
   MessageBox( 0, "inside AdsCloseCachedTables", "ok", 0 );
} 

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Error after update for FWH 7.11
Posted: Fri Nov 30, 2007 09:39 PM

Antonio,

Now it´s fine. Thank you

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Error after update for FWH 7.11
Posted: Fri Dec 07, 2007 06:44 AM
Antonio Linares wrote:

Try it this way:
#pragma BEGINDUMP 

#include <windows.h>

void pascal AdsCloseCachedTables( void ) 
{
   MessageBox( 0, "inside AdsCloseCachedTables", "ok", 0 );
} 

#pragma ENDDUMP


When I got this error, initially I just try to create a stub function
function AdsCLoseCachedTables()
return nil


But that didn't solve the problem. Only after putting in Antonio's code above does it links with no error. Out of curiousity, why is it so?

Ok, back to play with 7.12 :-)
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error after update for FWH 7.11
Posted: Fri Dec 07, 2007 07:02 AM

> Out of curiousity, why is it so?

Because the linker is requiring a C level function, not a PRG level one :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion