Error after update for FWH 7.11

Error after update for FWH 7.11

Postby vilian » 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
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Fri Nov 30, 2007 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » Fri Nov 30, 2007 1: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
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Fri Nov 30, 2007 8:58 am

Vilian,

As a workaround try to add this code to your main PRG:
Code: Select all  Expand view
#pragma BEGINDUMP

void AdsCloseCachedTables( void ) {}

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » 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
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby James Bott » Fri Nov 30, 2007 2: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Fri Nov 30, 2007 3:40 pm

Vilian,

> Unhappyly it did not decide the problem.

Do you get the same error ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » Fri Nov 30, 2007 5:44 pm

Antonio,

The error message is the same one:

Code: Select all  Expand view
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
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Fri Nov 30, 2007 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Nov 30, 2007 8:03 pm

Vilian,

Try it this way:
Code: Select all  Expand view
#pragma BEGINDUMP

#include <windows.h>

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

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » Fri Nov 30, 2007 9:39 pm

Antonio,

Now it´s fine. Thank you
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby hua » Fri Dec 07, 2007 6:44 am

Antonio Linares wrote:
Try it this way:
Code: Select all  Expand view
#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
Code: Select all  Expand view
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 :)
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Postby Antonio Linares » Fri Dec 07, 2007 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 92 guests