error ficheo mark de borland

error ficheo mark de borland

Postby Adolfredo Martinez » Sat Jul 16, 2022 10:12 pm

Hola amigos del forum

Estoy probando los ficheros mark de borland, pero no logro que funcione el ejemplo que biene en fwh19.03, esta es mi configuracion la de go.bat:
Code: Select all  Expand view  RUN
if not exist obj md obj
c:\bcc7\bin\make -ftest.mak
if errorlevel 0 test.exe
 


Y la de test.mak es:
Code: Select all  Expand view  RUN
#Borland make sample, (c) FiveTech Software 2005-2009

HBDIR=c:\xharbour_bcc70_2016
BCDIR=c:\bcc7
FWDIR=c:\fwh19.03

#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG =        \
alert.PRG    \
one.PRG

C =          \
two.C                

PROJECT    : Alert.exe

Alert.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) Alert.res
   echo off
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo obj\alert.obj obj\one.obj obj\two.obj, + >> b32.bc
   echo alert.exe, + >> b32.bc
   echo alert.map, + >> b32.bc
   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hblang.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
   echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
   echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc

   rem Uncomment these two lines to use Advantage RDD
   rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
   rem echo $(HBDIR)\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\msimg32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc

   IF EXIST Alert.res echo Alert.res >> b32.bc
   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:
  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
  echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
  del tmp

Alert.res : Alert.rc
  $(BCDIR)\bin\brc32.exe -r Alert.rc

Se queda bloqueado asi:

C:\bormake>if not exist obj md obj

C:\bormake>c:\bcc7\bin\make -ftest.mak
Adolfredo Martinez
 
Posts: 116
Joined: Fri Feb 15, 2019 1:37 pm
Location: Aracataca-Colombia

Re: error ficheo mark de borland

Postby Antonio Linares » Sun Jul 17, 2022 11:41 am

1. comprueba que la carpeta obj se genera

2. c:\bcc7\bin\make -ftest.mak

que salida a pantalla recibes ?
regards, saludos

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

Re: error ficheo mark de borland

Postby Adolfredo Martinez » Sun Jul 17, 2022 5:04 pm

Gracias antonio por contestar.

Estoy practicando, porque mis programas los hago todos en un solo chorro, pero asi no estoy organizado. Necesito aprender como utilizar el make.

El resultado que me sale es:

C:\bormake>go

C:\bormake>if not exist obj md obj

C:\bormake>c:\bcc582\bin\make -ftest.mak
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
echo off
echo c:\bcc7\lib\c0w32.obj + > b32.bc
echo obj\alert.obj obj\one.obj obj\two.obj, + >> b32.bc
echo alert.exe, + >> b32.bc
echo alert.map, + >> b32.bc
echo c:\fwh19.03\lib\Fivehx.lib c:\fwh19.03\lib\FiveHC.lib c:\fwh19.03\lib\libmysql.lib + >> b32.bc
echo c:\fwh19.03\lib\pgsql.lib c:\fwh19.03\lib\libpq.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\rtl.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\vm.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\%GT%.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\lang.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\macro.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\rdd.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\dbfntx.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\dbfcdx.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\dbffpt.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\hbsix.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\debug.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\common.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\codepage.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\pp.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\pcrepos.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\ct.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\zlib.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\hbzip.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\libmisc.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\tip.lib + >> b32.bc
echo c:\xharbour_bcc70_2016\hbzebra.lib + >> b32.bc
rem echo c:\xharbour_bcc70_2016\png.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
rem echo c:\xharbour_bcc70_2016\lib\rddads.lib + >> b32.bc
rem echo c:\xharbour_bcc70_2016\lib\Ace32.lib + >> b32.bc
echo c:\bcc7\lib\cw32.lib + >> b32.bc
echo c:\bcc7\lib\import32.lib + >> b32.bc
echo c:\bcc7\lib\uuid.lib + >> b32.bc
echo c:\bcc7\lib\ws2_32.lib + >> b32.bc
echo c:\bcc7\lib\psdk\odbc32.lib + >> b32.bc
echo c:\bcc7\lib\psdk\rasapi32.lib + >> b32.bc
echo c:\bcc7\lib\psdk\nddeapi.lib + >> b32.bc
echo c:\bcc7\lib\psdk\msimg32.lib + >> b32.bc
echo c:\bcc7\lib\psdk\psapi.lib + >> b32.bc
echo c:\bcc7\lib\psdk\gdiplus.lib + >> b32.bc
echo c:\bcc7\lib\psdk\iphlpapi.lib + >> b32.bc
echo c:\bcc7\lib\psdk\shell32.lib, >> b32.bc
IF EXIST Alert.res echo Alert.res >> b32.bc
c:\bcc7\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Fatal: Unable to open file 'RTL.LIB'

** error 2 ** deleting Alert.exe


Me crea la carpeta obj, con sus archivos asi:
Directorio de C:\bormake\obj

17/07/2022 11:42 a. m. <DIR> .
17/07/2022 11:42 a. m. <DIR> ..
17/07/2022 11:42 a. m. 3.580 alert.c
17/07/2022 11:42 a. m. 2.706 alert.obj
17/07/2022 11:42 a. m. 1.430 one.c
17/07/2022 11:42 a. m. 2.097 one.obj
17/07/2022 11:42 a. m. 6.321 two.obj
5 archivos 16.134 bytes


la version del bcc7 es:
C:\bcc7\bin>bcc32
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
Try 'bcc32 -h' for a list of core options, or
'bcc32 -h <OPT>' for help on a specific option (e.g. '-h -A'), or
'bcc32 -h -' to see all options.


version de xharbour es:
C:\xharbour_bcc70_2016\bin>harbour
xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613)
Copyright 1999-2018, http://www.xharbour.org http://www.harbour-project.org/
Adolfredo Martinez
 
Posts: 116
Joined: Fri Feb 15, 2019 1:37 pm
Location: Aracataca-Colombia

Re: error ficheo mark de borland

Postby Antonio Linares » Mon Jul 18, 2022 4:27 am

El error que te da es:

Fatal: Unable to open file 'RTL.LIB'

Comprueba que ese fichero este aqui: c:\xharbour_bcc70_2016\rtl.lib

que es donde le estás diciendo que está
regards, saludos

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

Re: error ficheo mark de borland

Postby Adolfredo Martinez » Tue Jul 19, 2022 12:39 am

Gracias Antonio.

Solucionado, tenia mal direccionado las lib de xharbour y por eso no lo encontraba.
Adolfredo Martinez
 
Posts: 116
Joined: Fri Feb 15, 2019 1:37 pm
Location: Aracataca-Colombia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests