FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Ayuda compilar 64 bits con FivEdit y BCC7764
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Tue Oct 15, 2024 08:03 PM
Sergio,

> Fatal: Illegal option: NODEFAULTLIB:msvcrt

Esta opción es para MSVC y no para Borland
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 83
Joined: Wed Apr 20, 2011 03:08 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Tue Oct 15, 2024 08:48 PM
Antonio Linares wrote:Sergio,

> Fatal: Illegal option: NODEFAULTLIB:msvcrt

Esta opción es para MSVC y no para Borland
Antonio, eliminé la configuración que se me había quedado de MSCV en el archivo HBP de Borland y copie el archivo C0W64.OBJ en el directorio de trabajo y ahora me el siguiente error:
Code (fw): Select all Collapse
c:\Pro\Raig32>C:\harbour64\bin\win\bcc64\hbmk2.exe test64.hbp -xhb -comp=bcc64
Harbour 3.2.0dev (r2407221137)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'Prgh\Sisven.prg'...
Lines 7604, Functions/Procedures 27
Generating C source output to 'Sisven.c'... Done.
Harbour 3.2.0dev (r2407221137)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'Prgh\New_tablas.PRG'...
Lines 9249, Functions/Procedures 18
Generating C source output to 'New_tablas.c'... Done.
Harbour 3.2.0dev (r2407221137)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'Prgh\Codigos.PRG'...
Lines 7249, Functions/Procedures 16
Generating C source output to 'Codigos.c'... Done.
bcc64.exe: warning: argument unused during compilation: '-Lc:\bcc7764\LIB' [-Wunused-command-line-argument]
Sisven.c:
New_tablas.c:
Codigos.c:
Turbo Incremental Link64 6.98 Copyright (c) 1997-2023 Embarcadero Technologies, Inc.
Fatal: Unable to open file 'CT.A'
hbmk2[test64]: Error: Running linker. 2
ilink64.exe @C:\Users\SVACAR~1\AppData\Local\Temp\f3k3qb.lnk

Sergio Vacarezza S.
Programador Freelance
sergio@vacarezza.cl
Santiago, Chile

Harbour 3.2.0dev (r2407221137) - FWH 24.08 - MariaDB 12.2.2 - FivEdit 22.0214

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Tue Oct 15, 2024 09:14 PM

> Fatal: Unable to open file 'CT.A'

la librería CT.A pertenece a xHarbour64

comprueba que esté en c:\xharbour64\lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 83
Joined: Wed Apr 20, 2011 03:08 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Tue Oct 15, 2024 09:16 PM
Antonio Linares wrote:> Fatal: Unable to open file 'CT.A'

la librería CT.A pertenece a xHarbour64

comprueba que esté en c:\xharbour64\lib
Antonio no estoy usando Xharbour64, si no que uso Harbour64 para BCC77

Sergio Vacarezza S.
Programador Freelance
sergio@vacarezza.cl
Santiago, Chile

Harbour 3.2.0dev (r2407221137) - FWH 24.08 - MariaDB 12.2.2 - FivEdit 22.0214

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Tue Oct 15, 2024 09:27 PM
Entonces quita el flag -xhb de esta línea:

c:\harbour64\bin\hbmk2.exe test64.hbp -xhb -comp=bcc64
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 83
Joined: Wed Apr 20, 2011 03:08 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Tue Oct 15, 2024 09:47 PM
Antonio Linares wrote:Entonces quita el flag -xhb de esta línea:

c:\harbour64\bin\hbmk2.exe test64.hbp -xhb -comp=bcc64
Antonio, eliminé lo que me indicaste del archivo GO64.bat quedando de esta manera:
Code (fw): Select all Collapse
set bcc=bcc7764
set path=c:\%bcc%\bin
set HB_USER_CFLAGS=-Ic:\%bcc%\INCLUDE\windows\crtl -Ic:\%bcc%\INCLUDE\windows\sdk -Lc:\%bcc%\LIB
set HB_USER_LDFLAGS=-Lc:\%bcc%\LIB;c:\%bcc%\LIB\psdk
C:\harbour64\bin\win\bcc64\hbmk2.exe test64.hbp -comp=bcc64
Se mantiene el mismo errror de no encontrar la liberiía "CT.A"
Code (fw): Select all Collapse
c:\Pro\Raig32>C:\harbour64\bin\win\bcc64\hbmk2.exe test64.hbp -comp=bcc64
Harbour 3.2.0dev (r2407221137)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'Prgh\Sisven.prg'...
Lines 7604, Functions/Procedures 27
Generating C source output to 'Sisven.c'... Done.
Compiling 'Prgh\New_tablas.PRG'...
Lines 9249, Functions/Procedures 18
Generating C source output to 'New_tablas.c'... Done.
Compiling 'Prgh\Codigos.PRG'...
Lines 7249, Functions/Procedures 16
Generating C source output to 'Codigos.c'... Done.
bcc64.exe: warning: argument unused during compilation: '-Lc:\bcc7764\LIB' [-Wunused-command-line-argument]
Sisven.c:
New_tablas.c:
Codigos.c:
Turbo Incremental Link64 6.98 Copyright (c) 1997-2023 Embarcadero Technologies, Inc.
Fatal: Unable to open file 'CT.A'
hbmk2[test64]: Error: Running linker. 2
ilink64.exe @C:\Users\SVACAR~1\AppData\Local\Temp\q2by1u.lnk

Sergio Vacarezza S.
Programador Freelance
sergio@vacarezza.cl
Santiago, Chile

Harbour 3.2.0dev (r2407221137) - FWH 24.08 - MariaDB 12.2.2 - FivEdit 22.0214

Posts: 137
Joined: Mon Oct 22, 2012 04:43 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 03:21 AM
see my hpb.file
Code (fw): Select all Collapse
# Source File
test.prg 

-optim-
-ldflag+=-aa

-workdir=
#-inc

# include path FWH64
-Ic:\fwh64_72024\include 

# lib path FWH64
-Lc:\fwh64_72024\lib     

# FWH64 libs
-lfive64
-lfivec64

hbct.hbc
xhb.hbc
hbziparc.hbc

# run after create
-run
Regards



Ing. Anton Lerchster
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 08:23 AM

If you want, I can show you a simple list of batch commands that do the work correctly. Please confirm.

Posts: 83
Joined: Wed Apr 20, 2011 03:08 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 11:46 AM

Erico many thanks. Can you send this command sample.

Sergio Vacarezza S.
Programador Freelance
sergio@vacarezza.cl
Santiago, Chile

Harbour 3.2.0dev (r2407221137) - FWH 24.08 - MariaDB 12.2.2 - FivEdit 22.0214

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 12:24 PM
Here it is, for Harbour and BCC 7.70 64 bit:
Code (fw): Select all Collapse
@ ECHO OFF

SET BCC=e:\fw\temp\bcc64\bcc
SET HRB=e:\fw\temp\bcc64\harbour
SET FWH=e:\fwharbour

SET LIB=-L%BCC%\lib;%BCC%\lib\psdk @%BCC%\bcc.rsp

SET HARBOURCMD=-a -es2 -gc0 -n -q -w3

IF EXIST %1.prg %HRB%\bin\harbour -i%FWH%\include -i%HRB%\include %1
IF EXIST %1.c %BCC%\bin\bcc64 -I%HRB%\include %1.c
IF EXIST %1.o %BCC%\bin\ilink64 -j%HRB%\lib c0w64 %1, %1, , %FWH%\lib\five64 %FWH%\lib\fivec64 @%HRB%\hrb.rsp %LIB%
IF EXIST %1.c DEL %1.c
IF EXIST %1.o DEL %1.o
IF EXIST %1.exe %1.exe
Posts: 137
Joined: Mon Oct 22, 2012 04:43 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 06:42 PM

Enrico's solution is a very good alternative to hbmk2 from (x)harbour, make from Borland and the batch files from FW.

Now the only question that remains is how to compile multiple prg files in one project.

Regards



Ing. Anton Lerchster
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 07:10 PM
If you have all the PRGs of the program in a single folder, this is a simple way:
Code (fw): Select all Collapse
@ ECHO OFF

SET BCC=e:\fw\temp\bcc64\bcc
SET HRB=e:\fw\temp\bcc64\harbour
SET FWH=e:\fwharbour

SET LIB=-L%BCC%\lib;%BCC%\lib\psdk @%BCC%\bcc.rsp

SET HARBOURCMD=-a -es2 -gc0 -n -q -w3

FOR %%i IN (*.prg) DO %HRB%\bin\harbour -i%FWH%\include -i%HRB%\include %%i
%BCC%\bin\bcc64 -I%HRB%\include *.c
FOR %%i IN (*.prg) DO CALL SET lst=%%lst%% %%~ni.o
%BCC%\bin\ilink64 -j%HRB%\lib c0w64 %lst%, , , %FWH%\lib\five64 %FWH%\lib\fivec64 @%HRB%\hrb.rsp %LIB%
Posts: 137
Joined: Mon Oct 22, 2012 04:43 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 07:27 PM
Enrico's solution, very good old dos time; Thanks;
a small correction otherwise the exe is called c0w64
Code (fw): Select all Collapse
%BCC%\bin\ilink64 -j%HRB%\lib %1 c0w64 %lst%, , , %FWH%\lib\five64 %FWH%\lib\fivec64 @%HRB%\hrb.rsp %LIB%
Regards



Ing. Anton Lerchster
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 07:30 PM
alerchster wrote:Enrico's solution, very good old dos time; Thanks;
a small correction otherwise the exe is called c0w64
Code (fw): Select all Collapse
%BCC%\bin\ilink64 -j%HRB%\lib %1 c0w64 %lst%, , , %FWH%\lib\five64 %FWH%\lib\fivec64 @%HRB%\hrb.rsp %LIB%
Better:
Code (fw): Select all Collapse
%BCC%\bin\ilink64 -j%HRB%\lib c0w64 %lst%, myexe.exe, , %FWH%\lib\five64 %FWH%\lib\fivec64 @%HRB%\hrb.rsp %LIB%
Posts: 137
Joined: Mon Oct 22, 2012 04:43 PM
Re: Ayuda compilar 64 bits con FivEdit y BCC7764
Posted: Wed Oct 16, 2024 07:34 PM
:D
Regards



Ing. Anton Lerchster

Continue the discussion