by James Bott » Fri Jan 06, 2006 1:06 am
Thanks, Antonio, that worked, however I still have the problem.
I obtained a copy of the source for rddads.lib and the three files (ads1.c, adsfunc.c, and adsmgmnt.c) are all dated last month. The adsconnect60() function is in the source, so I assume the function is NOT in the source of the version of rddads.lib that came with Harbour 45. When I try to compile the new source I get lots of errors (see below). I don't know C++, so I don't know what to look for. I expect I am not compiling properly, but I am using the makefile.bc that came with the source (also below).
Any ideas?
James
-----------------------
makefile.bc (slightly modifed with my paths):
#
# $Id: makefile.bc,v 1.5 2005/10/04 15:52:39 kaddath Exp $
#
# makefile for Borland C/C++ 32 bits
# Building of rddads.lib - RDD for Advantage Database Server
INCLUDE_DIR = ..\include;c:\bc55\include
BIN_DIR = ..\..\..\bcc55\bin
OBJ_DIR = ..\obj\b32
LIB_DIR = ..\lib\b32
$(LIB_DIR)\rddads.lib : \
$(OBJ_DIR)\ads1.obj \
$(OBJ_DIR)\adsfunc.obj \
$(OBJ_DIR)\adsmgmnt.obj
$(OBJ_DIR)\ads1.obj : ads1.c
$(OBJ_DIR)\adsfunc.obj : adsfunc.c
$(OBJ_DIR)\adsmgmnt.obj : adsmgmnt.c
.c.obj:
$(BIN_DIR)\bcc32 $(CLIBFLAGS) $(C_USR) -c -O2 -DWIN32 -I$(INCLUDE_DIR) -o$@ $<
tlib $(LIB_DIR)\rddads.lib -+$@,,
.prg.c:
$(BIN_DIR)\harbour.exe $< -q0 -w -es2 -gc0 -n -i$(INCLUDE_DIR) -o$@
---------------------------------
Compile errors:
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
..\..\..\bcc55\bin\bcc32 -c -O2 -DWIN32 -I..\include;c:\bc55\include -o..\obj\b32\ads1.obj ads1.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ADS1.C:
Error E2139 ..\include\rddads.h 96: Declaration missing ;
Warning W8075 ADS1.C 539: Suspicious pointer conversion in function adsGetRelPos
Warning W8075 ADS1.C 550: Suspicious pointer conversion in function adsGetRelPos
Error E2451 ADS1.C 580: Undefined symbol 'isOptimized' in function adsSetRelPos
Error E2451 ADS1.C 701: Undefined symbol 'isOptimized' in function adsGoBottom
Error E2451 ADS1.C 750: Undefined symbol 'isOptimized' in function adsGoTo
Error E2451 ADS1.C 821: Undefined symbol 'isOptimized' in function adsGoTop
Error E2451 ADS1.C 891: Undefined symbol 'isOptimized' in function adsSeek
Error E2451 ADS1.C 950: Undefined symbol 'fOptimized' in function adsSeek
Warning W8004 ADS1.C 995: 'u32Result' is assigned a value that is never used in function adsSeek
Error E2451 ADS1.C 1068: Undefined symbol 'fOptimized' in function adsSkip
Error E2451 ADS1.C 1108: Undefined symbol 'fOptimized' in function adsSkip
Error E2451 ADS1.C 1156: Undefined symbol 'fOptimized' in function adsSkipFilter
Error E2451 ADS1.C 1218: Undefined symbol 'isOptimized' in function adsAppend
Warning W8075 ADS1.C 1246: Suspicious pointer conversion in function adsAppend
Warning W8075 ADS1.C 2139: Suspicious pointer conversion in function adsRecInfo
Warning W8075 ADS1.C 2156: Suspicious pointer conversion in function adsRecInfo
Warning W8075 ADS1.C 2171: Suspicious pointer conversion in function adsRecInfo
Warning W8075 ADS1.C 2214: Suspicious pointer conversion in function adsRecId
Error E2451 ADS1.C 2245: Undefined symbol 'ulConnection' in function adsCreate
Error E2451 ADS1.C 2245: Undefined symbol 'ulConnection' in function adsCreate
Warning W8075 ADS1.C 2492: Suspicious pointer conversion in function adsInfo
Warning W8075 ADS1.C 2530: Suspicious pointer conversion in function adsInfo
Error E2451 ADS1.C 2619: Undefined symbol 'ulConnection' in function adsOpen
Error E2451 ADS1.C 2619: Undefined symbol 'ulConnection' in function adsOpen
Error E2451 ADS1.C 2986: Undefined symbol 'isOptimized' in function adsForceRel
Error E2451 ADS1.C 3024: Undefined symbol 'isOptimized' in function adsSetRel
Warning W8004 ADS1.C 3027: 'ulRetVal' is assigned a value that is never used in function adsSetRel
Warning W8075 ADS1.C 3568: Suspicious pointer conversion in function adsOrderInfo
Error E2451 ADS1.C 3573: Undefined symbol 'DBOI_RELKEYPOS' in function adsOrderInfo
Error E2172 ADS1.C 3573: Duplicate case in function adsOrderInfo
Error E2379 ADS1.C 3575: Statement missing ; in function adsOrderInfo
Warning W8075 ADS1.C 3637: Suspicious pointer conversion in function adsOrderInfo
Warning W8075 ADS1.C 3698: Suspicious pointer conversion in function adsOrderInfo
Error E2451 ADS1.C 3771: Undefined symbol 'DBOI_SCOPESET' in function adsOrderInfo
Error E2172 ADS1.C 3771: Duplicate case in function adsOrderInfo
Warning W8019 ADS1.C 3773: Code has no effect in function adsOrderInfo
Error E2379 ADS1.C 3773: Statement missing ; in function adsOrderInfo
Error E2451 ADS1.C 3816: Undefined symbol 'DBOI_SCOPECLEAR' in function adsOrderInfo
Error E2172 ADS1.C 3816: Duplicate case in function adsOrderInfo
Error E2228 ADS1.C 3816: Too many error or warning messages in function adsOrderInfo
*** 26 errors in Compile ***
** error 1 ** deleting ..\obj\b32\ads1.obj