Page 1 of 1

Error al Compilar hbmk2

PostPosted: Tue May 03, 2022 7:50 pm
by remtec
Amigos

Error al compilar varios PRG con hbmk2.

Saludos

Antonio

Error:
Code: Select all  Expand view

hbfoxpro.lib(dbfunc.obj) : error LNK2005: ya se defini¢ _HB_FUN_FSIZE en FiveH32.lib(FILENAME.obj)
InfoWin.exe : fatal error LNK1169: se encontraron uno o m s s¡mbolos definidos simult neamente
hbmk2[Infowin]: Error: Running linker. 1169
link.exe @C:\Users\MIGUEL~1\AppData\Local\Temp\n7w0zc.lnk

hbmk2: Hint: Add option 'hbfoxpro.hbc' for missing function(s): FSize()
 


Librerias:
Code: Select all  Expand view

-Lc:\util\fwh22.03\lib

-lFiveH32
-lFiveHC32

-lgdiplus
-lole32
-lOleDlg
-lversion

xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc

-ldflag=/NODEFAULTLIB:msvcrt
 

Re: Error al Compilar hbmk2

PostPosted: Tue May 03, 2022 8:34 pm
by remtec
Funciona y compila bien, si le retiro la librería " hbfoxpro.hbc ".

Es conveniente que retire esta librería del compilado?

Saludos

Antonio

Re: Error al Compilar hbmk2

PostPosted: Wed May 04, 2022 4:59 am
by Antonio Linares
Antonio,

Si el EXE se construye bien entonces es que no la necesitas, y todo ha de funcionarte bien.

Para usar los ficheros .hbc tienes que tener Harbour completo en tu ordenador. Para tenerlo tienes que hacer:

git clone https://github.com/harbour/core harbour

y se instalará completo en c:\harbour

Re: Error al Compilar hbmk2

PostPosted: Wed May 04, 2022 3:07 pm
by remtec
Maestrod Antonio.

Muy buen dia.

Muchas gracias por responder.

Estaba usando la carpeta de Harboud que estaba en el Link cuando compramos FWH 22.03.

Hoy bajare Habour del link que me indica.

Muchos Saludos

Antonio