FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Compilando con Harbour 3.2, Bcc7 y Hbmk2
Posts: 446
Joined: Mon Dec 26, 2005 09:11 PM

Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sat Jan 25, 2020 06:44 PM

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>

FWH + BCC582 + WorkShop 4.5 + Resource Hacker + Mingw
Mis nuevas herramientas
Comunicacion via WhatsApp (+51) 957549 665
Comunicaci贸n via Correo: apic1002002 at yahoo dot es; apic1002002@gmail.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sat Jan 25, 2020 08:32 PM

Armando,

Por favor copia aqui el contenido de sample.hbp

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sat Jan 25, 2020 10:08 PM

Armando est谩s intentando linkar las librerias de Fivewin para el compilador MinGw en lugar de utilizar las de Borland

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 446
Joined: Mon Dec 26, 2005 09:11 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sun Jan 26, 2020 12:09 AM
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
FWH + BCC582 + WorkShop 4.5 + Resource Hacker + Mingw
Mis nuevas herramientas
Comunicacion via WhatsApp (+51) 957549 665
Comunicaci贸n via Correo: apic1002002 at yahoo dot es; apic1002002@gmail.com
Posts: 446
Joined: Mon Dec 26, 2005 09:11 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sun Jan 26, 2020 12:18 AM
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>
FWH + BCC582 + WorkShop 4.5 + Resource Hacker + Mingw
Mis nuevas herramientas
Comunicacion via WhatsApp (+51) 957549 665
Comunicaci贸n via Correo: apic1002002 at yahoo dot es; apic1002002@gmail.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sun Jan 26, 2020 12:33 AM

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

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 446
Joined: Mon Dec 26, 2005 09:11 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sun Jan 26, 2020 04:34 AM

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.

FWH + BCC582 + WorkShop 4.5 + Resource Hacker + Mingw
Mis nuevas herramientas
Comunicacion via WhatsApp (+51) 957549 665
Comunicaci贸n via Correo: apic1002002 at yahoo dot es; apic1002002@gmail.com
Posts: 446
Joined: Mon Dec 26, 2005 09:11 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Mon Jan 27, 2020 10:21 PM

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.

FWH + BCC582 + WorkShop 4.5 + Resource Hacker + Mingw
Mis nuevas herramientas
Comunicacion via WhatsApp (+51) 957549 665
Comunicaci贸n via Correo: apic1002002 at yahoo dot es; apic1002002@gmail.com
Posts: 195
Joined: Fri Jan 23, 2009 02:50 AM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Mon Jan 27, 2020 11:19 PM

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

Posts: 111
Joined: Sun Oct 09, 2005 03:09 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Mon Jan 27, 2020 11:38 PM

Podr谩s compartirme esa informaci贸n a admsoporte@gmail.com

Enviado desde mi Redmi Note 8 mediante Tapatalk

Saludos

Atentamente

Jose F Dominguez Serafin

email admsoporte@gmail.com
Posts: 446
Joined: Mon Dec 26, 2005 09:11 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Tue Jan 28, 2020 04:24 AM

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

FWH + BCC582 + WorkShop 4.5 + Resource Hacker + Mingw
Mis nuevas herramientas
Comunicacion via WhatsApp (+51) 957549 665
Comunicaci贸n via Correo: apic1002002 at yahoo dot es; apic1002002@gmail.com
Posts: 195
Joined: Fri Jan 23, 2009 02:50 AM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sun Feb 02, 2020 02:55 PM

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

Posts: 817
Joined: Sun Jun 15, 2008 07:47 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Sun Feb 02, 2020 09:49 PM

Si es posible, porqu茅 no lo compartes con todo el mundo?
Ser铆a bueno tener un generador de *.mak

:D

______________________________________________________________________________

Sevilla - Andaluc铆a
Posts: 607
Joined: Mon Mar 04, 2013 04:32 PM

Re: Compilando con Harbour 3.2, Bcc7 y Hbmk2

Posted: Mon Feb 03, 2020 06:06 PM
xmanuel wrote:Si es posible, porqu茅 no lo compartes con todo el mundo?
Ser铆a bueno tener un generador de *.mak

:-)


+1
Fwh 24.07 64 bits + Harbour 64 bits 3.2dev(r2407221137) + MSVC64

Continue the discussion