Page 1 of 1

Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sat Jan 25, 2020 6:44 pm
by Armando Picon
Saludos;

Estoy teniendo estos mensajes cunado intento coompilar una aplicación antigua con Harbour, Bcc7 y el apoyo de Hbmk2. ¿alguien puede indicarme a qué puede deberse?

D:\Proyecto\prg>hbmk2 sample.hbp
hbmk2: Linking... menu.exe
hbmk2: Linker command:
ilink32.exe @C:\Users\apic1\AppData\Local\Temp\6ve6fv.lnk
hbmk2: Linker script:
-Gn -Tpe -Lc:\fwh\bcc7\Lib;c:\fwh\bcc7\Lib\PSDK;c:\fwh\harbour\lib;c:\fwh\lib;c:\fwh\Harbour\lib -ap c0x32.obj .hbmk\wi
n\bcc\menu.obj .hbmk\win\bcc\frecuencia.obj .hbmk\win\bcc\pron_2.obj .hbmk\win\bcc\seeyou.obj .hbmk\win\bcc\mmovil.obj,
menu.exe, nul, fivehg.lib fivehgc.lib gtgui.lib hbextern.lib hbdebug.lib hbvm.lib hbrtl.lib hblang.lib hbcpage.lib gtcgi
.lib gtpca.lib gtstd.lib gtwin.lib gtwvt.lib gtgui.lib hbrdd.lib hbuddall.lib hbusrrdd.lib rddntx.lib rddcdx.lib rddnsx.
lib rddfpt.lib hbrdd.lib hbhsx.lib hbsix.lib hbmacro.lib hbcplr.lib hbpp.lib hbcommon.lib kernel32.lib user32.lib gdi32.
lib advapi32.lib ws2_32.lib winspool.lib comctl32.lib comdlg32.lib shell32.lib uuid.lib ole32.lib oleaut32.lib mpr.lib w
inmm.lib mapi32.lib imm32.lib msimg32.lib wininet.lib hbpcre.lib hbzlib.lib cw32mt.lib import32.lib, ,
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: 'C:\FWH\LIB\FIVEHG.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
hbmk2: Error: Running linker. 2
ilink32.exe @C:\Users\apic1\AppData\Local\Temp\6ve6fv.lnk

Gracias; por adelantado.

D:\Proyecto\prg>

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sat Jan 25, 2020 8:32 pm
by Antonio Linares
Armando,

Por favor copia aqui el contenido de sample.hbp

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sat Jan 25, 2020 10:08 pm
by cnavarro
Armando estás intentando linkar las librerias de Fivewin para el compilador MinGw en lugar de utilizar las de Borland

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sun Jan 26, 2020 12:09 am
by Armando Picon
Antonio Linares wrote:Armando,

Por favor copia aqui el contenido de sample.hbp


Antonio, este es el contenido de sample.hbp

-inc
-trace

-q0 -w3 -es2

{incpath}=include
{libpath}=lib

-Lc:\fwh\lib
-Lc:\fwh\Harbour\lib

-lfiveh
-lfivehc
-fwhh175

#{win}gt=gtgui
-lgtgui

#Programas del proyecto
#----------------------
menu.prg
frecuencia.prg
pron_2.prg
seeyou.prg
mmovil.prg

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sun Jan 26, 2020 12:18 am
by Armando Picon
cnavarro wrote:Armando estás intentando linkar las librerias de Fivewin para el compilador MinGw en lugar de utilizar las de Borland

Es cierto. Estaba apuntando a las librerias para Mingw de Fwh, a pesar que todas las variables de entorno apuntaban a Harbour y Bcc7. Ya corregí; pero el arreglo ha resultado peor que la enfermedad.
Mira todo esto:

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

D:\proyecto\prg>hbmk2 sample.hbp
hbmk2: Linking... menu.exe
hbmk2: Linker command:
ilink32.exe @C:\Users\apic1\AppData\Local\Temp\em7fns.lnk
hbmk2: Linker script:
-Gn -Tpe -Lc:\fwh\bcc7\Lib;c:\fwh\bcc7\Lib\PSDK;c:\fwh\harbour\lib;c:\fwh\lib;c:\fwh\Harbour\lib -ap c0x32.obj .hbmk\wi
n\bcc\menu.obj .hbmk\win\bcc\frecuencia.obj .hbmk\win\bcc\pron_2.obj .hbmk\win\bcc\seeyou.obj .hbmk\win\bcc\mmovil.obj,
menu.exe, nul, fiveh.lib fivehc.lib gtgui.lib hbextern.lib hbdebug.lib hbvm.lib hbrtl.lib hblang.lib hbcpage.lib gtcgi.l
ib gtpca.lib gtstd.lib gtwin.lib gtwvt.lib gtgui.lib hbrdd.lib hbuddall.lib hbusrrdd.lib rddntx.lib rddcdx.lib rddnsx.li
b rddfpt.lib hbrdd.lib hbhsx.lib hbsix.lib hbmacro.lib hbcplr.lib hbpp.lib hbcommon.lib kernel32.lib user32.lib gdi32.li
b advapi32.lib ws2_32.lib winspool.lib comctl32.lib comdlg32.lib shell32.lib uuid.lib ole32.lib oleaut32.lib mpr.lib win
mm.lib mapi32.lib imm32.lib msimg32.lib wininet.lib hbpcre.lib hbzlib.lib cw32mt.lib import32.lib, ,
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_CTOT' referenced from C:\FWH\LIB\FIVEH.LIB|VALBLANK
Error: Unresolved external '_HB_FUN_TOLEAUTO' referenced from C:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN_LOG10' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_HB_FUN_FLOOR' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_HB_FUN_ADDMONTH' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_HB_FUN_EOM' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_HB_FUN_TIMETOSEC' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_HB_FUN_OS_ISWTSCLIENT' referenced from C:\FWH\LIB\FIVEH.LIB|MENU
Error: Unresolved external '_HB_FUN_HHASKEY' referenced from C:\FWH\LIB\FIVEH.LIB|FWDECODE
Error: Unresolved external '_HB_FUN_NUMAT' referenced from C:\FWH\LIB\FIVEH.LIB|MENUITEM
Error: Unresolved external '_HB_FUN_ANSITOWIDE' referenced from C:\FWH\LIB\FIVEH.LIB|TGDIPLUS
Error: Unresolved external '_HB_FUN_CHARREPL' referenced from C:\FWH\LIB\FIVEH.LIB|BTNBMP
Error: Unresolved external '_HB_FUN_CEILING' referenced from C:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_GETACTIVEOBJECT' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_CREATEOBJECT' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_AFTERATNUM' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_BEFORATNUM' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_TRUENAME' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_GETFILESINZIP' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPOPEN' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEFIRST' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEINFO' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEOPEN' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEREAD' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILECLOSE' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILENEXT' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPCLOSE' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HSETCASEMATCH' referenced from C:\FWH\LIB\FIVEH.LIB|TRECSET
Error: Unresolved external '_HB_FUN_HGETCASEMATCH' referenced from C:\FWH\LIB\FIVEH.LIB|TRECSET
Error: Unresolved external '_HB_FUN_STRTOHEX' referenced from C:\FWH\LIB\FIVEH.LIB|TRECSET
Error: Unresolved external '_HB_FUN_CHARREM' referenced from C:\FWH\LIB\FIVEH.LIB|TRECSET
Error: Unresolved external '_HB_FUN_TOKEN' referenced from C:\FWH\LIB\FIVEH.LIB|TRECSET
Error: Unresolved external '_HB_FUN_HB_ENUMINDEX' referenced from C:\FWH\LIB\FIVEH.LIB|DATAROW
Error: Unresolved external '_HB_FUN_BLANK' referenced from C:\FWH\LIB\FIVEH.LIB|DBCOMBO
Error: Unresolved external '_HB_FUN_EXENAME' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_CHARONLY' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_DATETIME' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_TTOS' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_REMALL' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_RANGEREPL' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN___OLEVARIANTNEW' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_HB_FUNCPTR' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_HB_EXEC' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_HB_REGEXREPLACE' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_ATSKIPSTRINGS' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_CHARONE' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_REMLEFT' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_HB_FUN_HEVAL' referenced from C:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_HB_DECODE' referenced from C:\FWH\LIB\FIVEH.LIB|PGSUPORT
Error: Unresolved external '_HB_FUN_WILDMATCH' referenced from C:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_OCCURS' referenced from C:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_NUMTOHEX' referenced from C:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_HEXTOSTR' referenced from C:\FWH\LIB\FIVEH.LIB|XBROWSE
Error: Unresolved external '_HB_FUN_WIDETOANSI' referenced from C:\FWH\LIB\FIVEH.LIB|TRICHED5
Error: Unresolved external '_HB_FUN_I18N' referenced from C:\FWH\LIB\FIVEH.LIB|TRICHED5
Error: Unresolved external '_hb_oleVariantToItem' referenced from C:\FWH\LIB\FIVEHC.LIB|ACTX
Error: Unresolved external '_hb_oleItemToVariant' referenced from C:\FWH\LIB\FIVEHC.LIB|ACTX
Error: Unresolved external '_hb_oleParam' referenced from C:\FWH\LIB\FIVEHC.LIB|ACTX
Error: Unresolved external '_HB_FUN_WIN_AXINIT' referenced from C:\FWH\LIB\FIVEH.LIB|ACTIVEX
Error: Unresolved external '_HB_FUN_WAPI_CREATEWINDOWEX' referenced from C:\FWH\LIB\FIVEH.LIB|ACTIVEX
Error: Unresolved external '_HB_FUN_WIN_AXGETCONTROL' referenced from C:\FWH\LIB\FIVEH.LIB|ACTIVEX
Error: Unresolved external '_HB_FUN_WAPI_OUTPUTDEBUGSTRING' referenced from C:\FWH\LIB\FIVEH.LIB|ACTIVEX
Error: Unresolved external '_HB_FUN_CHARMIRR' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_HB_FUN_CHARSWAP' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_HB_FUN_NOTIFY' referenced from C:\FWH\LIB\FIVEH.LIB|WINDOW
Error: Unresolved external '_HB_FUN_REMRIGHT' referenced from C:\FWH\LIB\FIVEH.LIB|VALBLANK
Error: Unresolved external '_HB_FUN_HB_SETCODEPAGE' referenced from D:\KABALA\PRG\.HBMK\WIN\BCC\MENU.OBJ
Error: Unresolved external '_HB_FUN_FILLCEROS' referenced from D:\KABALA\PRG\.HBMK\WIN\BCC\PRON_2.OBJ
Error: Unresolved external '_HB_FUN_NODISP' referenced from D:\KABALA\PRG\.HBMK\WIN\BCC\MENU.OBJ
Error: Unresolved external '_HB_FUN_WBROWSE' referenced from D:\KABALA\PRG\.HBMK\WIN\BCC\SEEYOU.OBJ
Error: Unresolved external '_HB_FUN_MENSAJE' referenced from D:\KABALA\PRG\.HBMK\WIN\BCC\MENU.OBJ
Error: Unable to perform link
hbmk2: Error: Running linker. 2
ilink32.exe @C:\Users\apic1\AppData\Local\Temp\em7fns.lnk

D:\kabala\prg>-inc
'-inc' is not recognized as an internal or external command,
operable program or batch file.

D:\kabala\prg>-trace
'-trace' is not recognized as an internal or external command,
operable program or batch file.

D:\kabala\prg>-inc
'-inc' is not recognized as an internal or external command,
operable program or batch file.

D:\kabala\prg>-trace
'-trace' is not recognized as an internal or external command,
operable program or batch file.

D:\proyecto\prg>

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sun Jan 26, 2020 12:33 am
by cnavarro
Paso a pasito
Estás utilizando creo un obj equivocado ya que no haces referencia al c0w32.obj, sino a otro con una "x"
Comprueba los ficheros .cfg de la carpeta bin del compilador borland a ver si los dos contienen las rutas correctas

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sun Jan 26, 2020 4:34 am
by Armando Picon
Es cierto. hay la presencia de un archivo obj tal como c0x32.obj. Eso lo pone hbmk2.
Siempre he asumido que hbmk2 hace las cosas bien, pero ahora veo que no toma c0w32.obj de Borland.
No recuerdo si en los apuntes de hbmk2 indica como se puede incluir ese objeto que falta. Si lo recuerdas, favor de indicarme.
Gracias

P.D. He verificado los CFG de Borland y se encuentran conforme. Alli todo esta correcto.

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Mon Jan 27, 2020 10:21 pm
by Armando Picon
Según reporta el proceso de compilacion, tal parece que las librerias c0x32.obj tiene repetido partes de c0w32.obj. Eso se muestra si incluyo a c0w32.obj como parte de los archivos a compilar, como si fuera un programa mas.

No encuentro solución a estas rarezas del Hbmk2 con bcc7 para windows.

Espero no tener que probar a recompilar Fiveh.lib y fivehc.lib para ver cómo puede compilar mis antiguos programas. Noto que en las fuentes de Fivewin hay más progrmas de los que están contenidos en esas librerias como objetos.

Mil perdones por las molestias.

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Mon Jan 27, 2020 11:19 pm
by Jairo Barbosa
Armando Buen dia
Yo he trabajado muy cómodamente con Make de borland, si quisieras te puedo colaborar paso a paso para generar automáticamente los .mak y finalmente la compilación.

Atentamente

Jairo Barbosa

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Mon Jan 27, 2020 11:38 pm
by admsoporte
Podrás compartirme esa información a admsoporte@gmail.com

Enviado desde mi Redmi Note 8 mediante Tapatalk

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Tue Jan 28, 2020 4:24 am
by Armando Picon
Adelante, Jairo.

Un gusto volver a contactarte. Estoy volviendo, en este caso, para actualizar unas aplicaciones de la antiguedad que fuera realizada para Clipper pero que ahora la quieren en 32bits.

Estoy llano a tus indicaciones por este medio o, si prefieres, enviamelos a mi correo; apic1002002@gmail.com Me gustaria que la primera opcion fuera la que escoges por eso de compartir conociemientos con algunos que, estoy seguro, tambien tienen inconvenientes con Make de Borland o con Hbmk2 de Vistor Zsakats.

Agradecido de antemano.

Armando

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sun Feb 02, 2020 2:55 pm
by Jairo Barbosa
Armando Jose Buen dia
Fue enviado a sus respectivos correos el código y el exe para que es ap genere el archivo .mak puedes configurar desde código como desees la organización de tus proyectos
JEB

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Sun Feb 02, 2020 9:49 pm
by xmanuel
Si es posible, porqué no lo compartes con todo el mundo?
Sería bueno tener un generador de *.mak

:D

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

PostPosted: Mon Feb 03, 2020 6:06 pm
by jvtecheto
xmanuel wrote:Si es posible, porqué no lo compartes con todo el mundo?
Sería bueno tener un generador de *.mak

:D


+1