Page 1 of 1

fiveh.lib and xcc

Posted: Sun Oct 29, 2006 9:43 pm
by dusanm
I've got fiveh.lib compiled with bordland compiler and when used with xharbour professional (xcc) it gives an error
xLINK: fatal error: Corrupt library: 'D:\fwh\lib\Fiveh.lib'.
So is there fiveh.lib compatible with xharbour?

Posted: Mon Oct 30, 2006 12:02 am
by Antonio Linares
You have to use FiveHMX.lib and FiveHCM.lib for xHarbour and xcc.

Posted: Tue Oct 31, 2006 1:28 pm
by dusanm
Hi Antonio,
I used those libs as you suggested but I still have problems. I tried compiling you testsql1.prg.
Here is xbp file:
CINI =
C_OUTPUTFOLDER =
DEFFILE =
INCLUDEFOLDERS =
LAUTORUN =
LDEBUG = .F.
LGUI = .T.
LIBFOLDERS =
LMT = .F.
LPRG_CLASSICDEBUG = .F.
LPRG_DEBUG = .F.
LUSEDLL = .F.
MAPFILE =
MYC_FLAGS =
MYDEFINES =
MYLINK_FLAGS =
MYPRG_FLAGS =
MYRC_FLAGS =
MYSLY_FLAGS =
OUTPUTFOLDER =
PRG_OUTPUTFOLDER =
RC_OUTPUTFOLDER =
RUNARGUMENTS =
SLY_OUTPUTFOLDER =
STARTIN =
TARGETFOLDER =

[TESTSQL1.PRG]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =

[TEST.RC]
MYDEFINES =
MYRC_FLAGS =

[fivehmx.lib]

[fivehcm.lib]

End log of the error it produces:
Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"d:\xhb\lib" -LIBPATH:"d:\xhb\c_lib" -LIBPATH:"d:\xhb\c_lib\win" -LIBPATH:"D:\fw\lib" "TESTSQL1.obj" "TEST.res" fivehmx.lib fivehcm.lib OptG.lib sql.lib ace32.lib xhb.lib dbf.lib ntx.lib cdx.lib rmdbfcdx.lib activex.lib crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"testsql1.exe"<<<

xLINK: error: Unresolved external symbol '_HB_FUN_INIODBC32'.

xLINK: error: Unresolved external symbol '_HB_FUN_ENDODBC32'.

xLINK: error: Unresolved external symbol '_HB_FUN__TRDD'.

xLINK: error: Unresolved external symbol '_HB_FUN_RDDSETFIELDEXTENT'.

xLINK: error: Unresolved external symbol '_HB_FUN_RDDADDFIELD'.

xLINK: fatal error: 5 unresolved external(s).


Type: C >>>Couldn't build: testsql1.exe<<<

Posted: Tue Oct 31, 2006 10:28 pm
by Antonio Linares
Class TRdd is available for FiveWin 16 bits only. Please try other samples.