FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour a little off topic
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
a little off topic
Posted: Thu Nov 26, 2009 03:55 AM
Hello all,

As the above subject, I tried to compile ADS_RDD from CVS but having error:
Test it on xHarbour 1.21, xHarbour 1.21.6573 and xHarbour 1.21.6633 but failed


MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 -I"D:\ADS_SDK\81\acesdk" -c -O2 -DWIN32 -I..\..\include -o..\..\obj\ads1.obj ads1.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ads1.c:
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1242: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1243: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1246: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1247: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1250: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1251: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1254: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1256: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1259: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1261: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1264: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1265: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1267: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1270: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1274: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1275: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1277: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1278: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1280: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1282: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1285: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1286: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1288: Declaration syntax error
Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1291: ) expected
Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1295: Declaration syntax error
Error E2228 D:\ADS_SDK\81\acesdk\ace.h 1295: Too many error or warning messages
*** 26 errors in Compile ***

** error 1 ** deleting ..\..\obj\ads1.obj


I think someone here can add some light.

Apology for the OT.
:-)


Regards,
Fraxzi
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: a little off topic
Posted: Fri Nov 27, 2009 07:38 AM

Frances,

> Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1242: Declaration syntax error
> Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1243: ) expected

Please post here the source code for the above two lines, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: a little off topic
Posted: Tue Dec 01, 2009 12:29 AM
Antonio Linares wrote:Frances,

> Error E2141 D:\ADS_SDK\81\acesdk\ace.h 1242: Declaration syntax error
> Error E2293 D:\ADS_SDK\81\acesdk\ace.h 1243: ) expected

Please post here the source code for the above two lines, thanks



Mr. Antonio,

Here's the specific lines 1242 and 1243:

Code (fw): Select all Collapse
..
UNSIGNED32 ENTRYPOINT AdsAddCustomKey( ADSHANDLE hIndex );
typedef UNSIGNED32 (WINAPI *ADSADDCUSTOMKEY_PTR)( ADSHANDLE hIndex );
..


I hope you can help me compile the RDD_ADS latest CVS.

Thank you and regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: a little off topic
Posted: Tue Dec 01, 2009 06:50 AM

Frances,

Please change those lines this way:

unsigned long AdsAddCustomKey( ADSHANDLE hIndex );
typedef unsigned long (WINAPI *ADSADDCUSTOMKEY_PTR)( ADSHANDLE hIndex );

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: a little off topic
Posted: Wed Dec 02, 2009 12:23 AM
Antonio Linares wrote:Frances,

Please change those lines this way:

unsigned long AdsAddCustomKey( ADSHANDLE hIndex );
typedef unsigned long (WINAPI *ADSADDCUSTOMKEY_PTR)( ADSHANDLE hIndex );



Mr. Antonio,

I did changed and tried to compile:



Error Message:



Line #1247 is OK
Line #1248 has the same error

If I compile the published RDD_ADS contribution with xHB1.21 up to xHB1.21.6633 has no issue or error... This new CVS has issue.
The issue is the same with ACESDK 8.1 and 9.1


Best Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: a little off topic
Posted: Sat Dec 05, 2009 05:26 AM

Hello Mr. Antonio,

any update?

Regards,
Frances

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: a little off topic
Posted: Sat Dec 05, 2009 06:47 AM

Frances,

My mistake. Please try this line this way:

typedef unsigned long ( *ADSADDCUSTOMKEY_PTR ) ( ADSHANDLE hIndex );

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: a little off topic
Posted: Wed Dec 09, 2009 01:50 AM
Antonio Linares wrote:Frances,

My mistake. Please try this line this way:

typedef unsigned long ( *ADSADDCUSTOMKEY_PTR ) ( ADSHANDLE hIndex );



Mr. Antonio,

I modified ace.h and rddads.h respectively with no error during compile :-)

but with this new error :-)
Code (fw): Select all Collapse
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
    bcc32   -I"D:\ADS_SDK\81\acesdk"  -c -O2 -DHB_OS_WIN_32 -I..\..\include -o..\..\obj\ads1.obj ads1.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ads1.c:
Error E2451 ads1.c 379: Undefined symbol 'area' in function hb_adsUpdateAreaFlags
Error E2451 ads1.c 380: Undefined symbol 'area' in function hb_adsUpdateAreaFlags
Error E2451 ads1.c 381: Undefined symbol 'area' in function hb_adsUpdateAreaFlags
Error E2451 ads1.c 383: Undefined symbol 'area' in function hb_adsUpdateAreaFlags
Error E2451 ads1.c 383: Undefined symbol 'area' in function hb_adsUpdateAreaFlags
Error E2451 ads1.c 694: Undefined symbol 'area' in function adsSetRelPos
Error E2451 ads1.c 698: Undefined symbol 'area' in function adsSetRelPos
Error E2451 ads1.c 712: Undefined symbol 'area' in function adsSetRelPos
Error E2451 ads1.c 774: Undefined symbol 'area' in function adsBof
Warning W8057 ads1.c 777: Parameter 'pBof' is never used in function adsBof
Error E2451 ads1.c 787: Undefined symbol 'area' in function adsEof
Warning W8057 ads1.c 790: Parameter 'pEof' is never used in function adsEof
Error E2451 ads1.c 800: Undefined symbol 'area' in function adsFound
Warning W8057 ads1.c 803: Parameter 'pFound' is never used in function adsFound
Error E2451 ads1.c 812: Undefined symbol 'area' in function adsGoBottom
Error E2451 ads1.c 813: Undefined symbol 'area' in function adsGoBottom
Error E2451 ads1.c 819: Undefined symbol 'area' in function adsGoBottom
Error E2451 ads1.c 901: Undefined symbol 'area' in function adsGoTo
Error E2451 ads1.c 932: Undefined symbol 'area' in function adsGoTop
Error E2451 ads1.c 933: Undefined symbol 'area' in function adsGoTop
Error E2451 ads1.c 939: Undefined symbol 'area' in function adsGoTop
Error E2451 ads1.c 1020: Undefined symbol 'area' in function adsSeek
Error E2451 ads1.c 1020: Undefined symbol 'area' in function adsSeek
Error E2451 ads1.c 1049: Undefined symbol 'area' in function adsSeek
Error E2451 ads1.c 1049: Undefined symbol 'area' in function adsSeek
Error E2451 ads1.c 1053: Undefined symbol 'area' in function adsSeek
Error E2451 ads1.c 1062: Undefined symbol 'area' in function adsSeek
Error E2451 ads1.c 1079: Undefined symbol 'area' in function adsSeek
Error E2228 ads1.c 1079: Too many error or warning messages in function adsSeek
*** 26 errors in Compile ***

** error 1 ** deleting ..\..\obj\ads1.obj


Here a piece of ads1.c
Code (fw): Select all Collapse
371 static HB_ERRCODE hb_adsUpdateAreaFlags( ADSAREAP pArea )
372 {
373    UNSIGNED16 u16Bof, u16Eof, u16Found;
374 
375   AdsAtBOF( pArea->hTable, &u16Bof );
376   AdsAtEOF( pArea->hTable, &u16Eof );
377   AdsIsFound( pArea->hTable, &u16Found );
378
379   pArea->area.fBof = u16Bof != 0;
380   pArea->area.fEof = u16Eof != 0;
381   pArea->area.fFound = u16Found != 0;
382
383   pArea->fPositioned = !pArea->area.fBof && !pArea->area.fEof;
384
385   return HB_SUCCESS;
386 }
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: a little off topic
Posted: Wed Dec 09, 2009 01:56 AM
Mr. Antonio,

There's a difference in published Contrib\RDD_ADS\ads1.c
Code (fw): Select all Collapse
static HB_ERRCODE hb_adsUpdateAreaFlags( ADSAREAP pArea )
{
   UNSIGNED16 u16Bof, u16Eof, u16Found;

   AdsAtBOF( pArea->hTable, &u16Bof );
   AdsAtEOF( pArea->hTable, &u16Eof );
   AdsIsFound( pArea->hTable, &u16Found );

   pArea->fBof = u16Bof != 0;
   pArea->fEof = u16Eof != 0;
   pArea->fFound = u16Found != 0;

   pArea->fPositioned = !pArea->fBof && !pArea->fEof;

   return SUCCESS;
}


Versus the latest CVS
Code (fw): Select all Collapse
static HB_ERRCODE hb_adsUpdateAreaFlags( ADSAREAP pArea )
{
   UNSIGNED16 u16Bof, u16Eof, u16Found;

   AdsAtBOF( pArea->hTable, &u16Bof );
   AdsAtEOF( pArea->hTable, &u16Eof );
   AdsIsFound( pArea->hTable, &u16Found );

   pArea->area.fBof = u16Bof != 0;
   pArea->area.fEof = u16Eof != 0;
   pArea->area.fFound = u16Found != 0;

   pArea->fPositioned = !pArea->area.fBof && !pArea->area.fEof;

   return HB_SUCCESS;
}
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15

Continue the discussion