Patrick,
Don't place "," between OBJ names:
echo PRG1.obj + >> b32.bc
echo PRG2.obj + >> b32.bc
echo PRG3.obj, + >> b32.bc
ETC ETC
Just one for the latest one.
Yes, it should work ![]()
Patrick,
Don't place "," between OBJ names:
echo PRG1.obj + >> b32.bc
echo PRG2.obj + >> b32.bc
echo PRG3.obj, + >> b32.bc
ETC ETC
Just one for the latest one.
Yes, it should work ![]()
Patrick,
Please copy here your modified buildh.bat, thanks
if "%FWDIR%" == "" set FWDIR=c:\fwh
if "%HBDIR%" == "" set HBDIR=c:\harbour
if "%2" == "/b" set GT=gtwin
if not "%2" == "/b" set GT=gtgui
ECHO Compiling...
set hdir=%HBDIR%
set hdirl=%hdir%\lib
set fwh=%FWDIR%
set bcdir=c:\Borland\BCC55
%hdir%\bin\harbour TITUS /n /i..\include;%hdir%\include /w %2 %3 > clip.log
%hdir%\bin\harbour ANALYSES /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour ANIMAUX /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour ATTENTE /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour CARNET /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour CLIENTS /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour CREAFICH /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour DEPENSES /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour FICHE /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour HONO /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour IMPAYE /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour N2L /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour RACE /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour RECETTES /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour REPERT /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour SAISIEHD /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour SALAIRES /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour TARIF /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour TATOUAGE /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour VACCIN /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
%hdir%\bin\harbour VERIF /n /i..\include;%hdir%\include /w %2 %3 >> clip.log
IF ERRORLEVEL 1 GOTO COMPILEERRORS
@type comp.log
echo -O2 -etitus.exe -I%hdir%\include -I%bcdir%\include titus.c > b32.bc
rem echo off IF ERRORLEVEL 1 PAUSE
rem echo off IF ERRORLEVEL 1 GOTO EXIT
rem echo -O2 -e%1.exe -I%hdir%\include -tW %1.c > b32.bc
rem echo -O2 -etitus.exe -I%hdir%\include -tW titus.c > b32.bc
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\titus c:\titus\prg\titus.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\analyses c:\titus\prg\analyses.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\animaux c:\titus\prg\animaux.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\attente c:\titus\prg\attente.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\carnet c:\titus\prg\carnet.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\clients c:\titus\prg\clients.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\creafich c:\titus\prg\creafich.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\depenses c:\titus\prg\depenses.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\fiche c:\titus\prg\fiche.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\hono c:\titus\prg\hono.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\impaye c:\titus\prg\impaye.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\n2l c:\titus\prg\n2l.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\race c:\titus\prg\race.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\recettes c:\titus\prg\recettes.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\repert c:\titus\prg\repert.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\saisiehd c:\titus\prg\saisiehd.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\salaires c:\titus\prg\salaires.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\tarif c:\titus\prg\tarif.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\tatouage c:\titus\prg\tatouage.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\vaccin c:\titus\prg\vaccin.c
c:\borland\bcc55\bin\bcc32 /M /c -O2 -Ic:\harbour\include -oc:\titus\prg\verif c:\titus\prg\verif.c
echo %bcdir%\bin\bcc32 /M /c @b32.bc
:ENDCOMPILE
IF EXIST %1.rc %bcdir%\bin\brc32 -r %1
echo %bcdir%\LIB\c0w32.obj + > b32.bc
echo titus.obj + >> b32.bc
echo analyses.obj + >> b32.bc
echo animaux.obj + >> b32.bc
echo attente.obj + >> b32.bc
echo carnet.obj + >> b32.bc
echo clients.obj + >> b32.bc
echo creafich.obj + >> b32.bc
echo depenses.obj + >> b32.bc
echo fiche.obj + >> b32.bc
echo hono.obj + >> b32.bc
echo impaye.obj + >> b32.bc
echo race.obj + >> b32.bc
echo recettes.obj + >> b32.bc
echo repert.obj + >> b32.bc
echo saisiehd.obj + >> b32.bc
echo salaires.obj + >> b32.bch
echo tarif.obj + >> b32.bc
echo tatouage.obj + >> b32.bc
echo vaccin.obj + >> b32.bc
echo verif.obj, + >> b32.bc
echo titus.exe, + >> b32.bc
echo titus.map, + >> b32.bc
echo c:\fwh\lib\FiveH.lib + >> b32.bc
echo c:\fwh\lib\FiveHC.lib + >> b32.bc
echo %hdir%\lib\rtl.lib + >> b32.bc
echo %hdir%\lib\vm.lib + >> b32.bc
echo %hdir%\lib\gtwin.lib + >> b32.bc
echo %hdir%\lib\lang.lib + >> b32.bc
echo %hdir%\lib\macro.lib + >> b32.bc
echo %hdir%\lib\rdd.lib + >> b32.bc
echo %hdir%\lib\dbfntx.lib + >> b32.bc
echo %hdir%\lib\dbfcdx.lib + >> b32.bc
echo %hdir%\lib\dbffpt.lib + >> b32.bc
echo %hdir%\lib\debug.lib + >> b32.bc
echo %hdir%\lib\common.lib + >> b32.bc
echo %hdir%\lib\pp.lib + >> b32.bc
echo %hdir%\lib\codepage.lib + >> b32.bc
echo %hdir%\lib\hbsix.lib + >> b32.bc
echo %hdir%\lib\hbw32.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
echo %hdir%\lib\rddads.lib + >> b32.bc
echo %hdir%\lib\Ace32.lib + >> b32.bc
echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib >> b32.bc
echo %bcdir%\lib\psdk\msimg32.lib >> b32.bc
IF EXIST %1.res echo %1.res >> b32.bc
rem uncomment this line to use the debugger and comment the next one
rem %bcdir%\bin\ilink32 -Tpe -s @b32.bc
if %GT% == gtwin %bcdir%\bin\ilink32 -L%bcdir%\Lib -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
if %GT% == gtgui %bcdir%\bin\ilink32 -L%bcdir%\Lib -Gn -aa -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
rem delete temporary files
rem @del .c
@del .obj
GOTO :EXIT
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
%1
GOTO EXIT
ECHO
:LINKERROR
rem if exist meminfo.txt notepad meminfo.txt
rem PAUSE * Linking errors *
GOTO EXIT
:SINTAX
ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT
:NOEXIST
ECHO The specified PRG %1 does not exist
:EXIT
PAUSE
hEXIT
I put it but have always the same message
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
c:\Borland\BCC55\lib\psdk\msimg32.lib(1):'Unrecognized keyword 'Ç''
Fatal: Error processing .DEF file
Patrick,
Please copy here your generated b32.bc, thanks
Patrick,
You are not linking the right Harbour libraries. Please notice that the right ones start with "hb" (most of them):
echo %hdirl%\hbrtl.lib + >> b32.bc
echo %hdirl%\hbvm.lib + >> b32.bc
echo %hdirl%\gtgui.lib + >> b32.bc
echo %hdirl%\hblang.lib + >> b32.bc
echo %hdirl%\hbmacro.lib + >> b32.bc
echo %hdirl%\hbrdd.lib + >> b32.bc
echo %hdirl%\rddntx.lib + >> b32.bc
echo %hdirl%\rddcdx.lib + >> b32.bc
echo %hdirl%\rddfpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\hbdebug.lib + >> b32.bc
echo %hdirl%\hbcommon.lib + >> b32.bc
echo %hdirl%\hbpp.lib + >> b32.bc
echo %hdirl%\hbcpage.lib + >> b32.bc
echo %hdirl%\hbw32.lib + >> b32.bc
Ok i change the lib and it is very better
I Just have the error for function of my prg
Error: Unresolved external '_HB_FUN_LSAVEOBJECT' referenced from C:\TITUS\PRG\TI
TUS.OBJ
Error: Unresolved external '_HB_FUN_RESIZEDLG' referenced from C:\TITUS\PRG\CLIE
NTS.OBJ
Error: Unresolved external '_HB_FUN_IMPRACE' referenced from C:\TITUS\PRG\RACE.O
BJ
Error: Unresolved external '_HB_FUN_REFAIT' referenced from C:\TITUS\PRG\ANALYSE
S.OBJ
Error: Unresolved external '_HB_FUN_SALAIRE' referenced from C:\TITUS\PRG\TITUS.
OBJ
I don't know why this functions are unresolved when they are working well with Clipper and "Lsaveobject()" is a FW function.
I will look and accept any idea
Thank you Antonio for your help in the middle of the night...
Yesterday night i was called for an accident, so i can't answer you
I've found the differents problemes and if i exept the LSAVEOBJECT' function which seems to not working with Harbour, i obtain a complete compilation and linking. I just have to rebuild all my indexes.
See you later
Patrick,
For lSaveObject(), for an array, you can use ASave() and ALoad() as James has commented you: