FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Archivo *.HBP para FWH64-Borland/CLang y MySQL
Posts: 524
Joined: Sun Oct 16, 2005 03:32 AM

Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 02:44 PM

Amigos buenos días,

Donde encuentro un *.HBP de muestra para compilar y linkear un test simple que carga una bd MySQL con una tabla y un xBrowse, con FWH64, Harbour64, Borland/CLang 64 y MSVC 2022 64. LLevo intentándolo dos días y no lo consigo :oops: :cry:

Gracias por su ayuda, abrazos para todos

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Posts: 44229
Joined: Thu Oct 06, 2005 05:47 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 02:50 PM

Estimado Carlos,

go64.bat

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:\harbour\bin\win\bcc64\hbmk2.exe test.hbp -comp=bcc64
if errorlevel 0 test.exe

test.hbp

-gui

-Ic:\fwh\include

test.prg

-workdir=
-optim-
-ldflag+=-aa

-Lc:\fwh\lib

-l{x86}fiveh
-l{x86}fivehc
-l{x86_64}five64
-l{x86_64}fivec64

-lgdiplus
-lole32
-lOleDlg
-lversion

xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44229
Joined: Thu Oct 06, 2005 05:47 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 02:51 PM

go32.bat

set path=c:\bcc77\bin
c:\harbour\bin\win\bcc\hbmk2 test.hbp -comp=bcc > info.log
if errorlevel 0 test.exe

mismo test.hbp del mensaje anterior :idea:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8559
Joined: Tue Dec 20, 2005 07:36 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 02:57 PM

Estimado maestro, no quiero ser molesto, pero ya que lo soy (ja ja ja), ¿podría agregar también un CX.BAT y un CX.LNK -> XHARBOUR? Y también un HB.BAT y un HB.LNK -> HARBOUR?

Gracias, tks.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 524
Joined: Sun Oct 16, 2005 03:32 AM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 03:16 PM

Querido maestro, gracias por la respuesta.

En realidad si estoy compilando sin problemas para Mysql y sin necesidad de declarar ninguna lib para MySQL/MariaDB, pero, al intentar hacer un test a 32 o 64 bits usando

FWCONNECT oCn HOST 'localhost' USER 'xxxx' PASSWORD 'xxxxx' DATABASE 'test'

, exige libs para MySQL

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Posts: 18
Joined: Fri Apr 18, 2008 02:41 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 03:33 PM

Verifique se a DLL está na pasta:

libmariadb64.dll (caso seja 64)

Um abraço,

Alexandre Pereira

Alexandre Pereira

Harbour 3.2 - FWH - 25.12 - MSVC - VsCODE - Win11

Posts: 44229
Joined: Thu Oct 06, 2005 05:47 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 03:42 PM
karinha wrote:

Estimado maestro, no quiero ser molesto, pero ya que lo soy (ja ja ja), ¿podría agregar también un CX.BAT y un CX.LNK -> XHARBOUR?
Y también un HB.BAT y un HB.LNK -> HARBOUR?

Gracias, tks.

Regards, saludos.

Estimado Joao,

CX.BAT

set path=c:\bcc77\bin
c:\xharbour\bin\harbour test.prg /n /w /ic:\xharbour\include /ic:\fwh\include > info.log
if errorlevel 1 goto :error
c:\bcc77\bin\bcc32 -c -Ic:\xharbour\include -Ic:\fwh\include test.c >> info.log
if errorlevel 1 goto :error
c:\bcc77\bin\ilink32 @CX.LNK >> info.log
if not errorlevel 1 test.exe
goto :eof
:error
type info.log

CX.LNK

/Gn /Tpe /ap /Lc:\bcc77\lib;c:\bcc77\lib\psdk;c:\xharbour\lib;c:\fwh\lib c0w32.obj test.obj,test.exe,test.map,FiveHX.lib FiveHC.lib rtl.lib vm.lib common.lib pp.lib lang.lib codepage.lib macro.lib rdd.lib compiler.lib dbfcdx.lib dbfntx.lib dbffpt.lib nulsys.lib gtgui.lib ct.lib hbmzip.lib hbzip.lib tip.lib zlib.lib pcrepos.lib sixapi.lib hbsix.lib gdiplus.lib ole32.lib oleaut32.lib OleDlg.lib version.lib uxtheme.lib shell32.lib kernel32.lib user32.lib advapi32.lib import32.lib cw32.lib

HB.BAT

set path=c:\bcc77\bin
c:\harbour\bin\win\bcc\harbour test.prg /n /w /ic:\harbour\include /ic:\fwh\include > info.log
if errorlevel 1 goto :error
c:\bcc77\bin\bcc32 -c -Ic:\harbour\include -Ic:\fwh\include test.c >> info.log
if errorlevel 1 goto :error
c:\bcc77\bin\ilink32 @HB.LNK >> info.log
if not errorlevel 1 test.exe
goto :eof
:error
type info.log

HB.LNK

/Gn /Tpe /ap /Lc:\bcc77\lib;c:\bcc77\lib\psdk;c:\harbour\lib\win\bcc;c:\fwh\lib c0w32.obj test.obj,test.exe,test.map,FiveH.lib FiveHC.lib hbcommon.lib hbvm.lib hbrtl.lib hbpp.lib hblang.lib hbcpage.lib hbmacro.lib hbrdd.lib hbdebug.lib hbct.lib hbwin.lib hbmzip.lib minizip.lib hbziparc.lib hbzlib.lib hbpcre.lib hbsix.lib hbfoxpro.lib hbxpp.lib xhb.lib gtgui.lib rddfpt.lib rddcdx.lib rddntx.lib gdiplus.lib ole32.lib oleaut32.lib OleDlg.lib version.lib uxtheme.lib shell32.lib kernel32.lib user32.lib advapi32.lib import32.lib cw32.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44229
Joined: Thu Oct 06, 2005 05:47 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 03:48 PM
Cgallegoa wrote:

Querido maestro, gracias por la respuesta.

En realidad si estoy compilando sin problemas para Mysql y sin necesidad de declarar ninguna lib para MySQL/MariaDB, pero, al intentar hacer un test a 32 o 64 bits usando

FWCONNECT oCn HOST 'localhost' USER 'xxxx' PASSWORD 'xxxxx' DATABASE 'test'

, exige libs para MySQL

Estimado Carlos,

Para 32 bits tienes que enlazar c:\fwh\lib\libmysql.lib ó c:\fwh\lib\libmariadb.lib

Si es para 64 bits c:\fwh\lib\libmysql64.lib ó c:\fwh\lib\libmariadb64.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8559
Joined: Tue Dec 20, 2005 07:36 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 03:49 PM

Estimado Maestro, estes archivos és para FWH64 bits?

Gracias, tks.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 524
Joined: Sun Oct 16, 2005 03:32 AM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 04:04 PM

Maestro, gracias, genial como siempre. :D

Un abrazo,

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Posts: 44229
Joined: Thu Oct 06, 2005 05:47 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Fri May 29, 2026 08:36 PM
karinha wrote:

Estimado Maestro, estes archivos és para FWH64 bits?

Gracias, tks.

Regards, saludos.

32 bits

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8559
Joined: Tue Dec 20, 2005 07:36 PM

Re: Archivo *.HBP para FWH64-Borland/CLang y MySQL

Posted: Sat May 30, 2026 04:36 PM
Antonio Linares wrote:

Estimado Maestro, estes archivos és para FWH64 bits?

Gracias, tks.

Regards, saludos.

32 bits

¿Existe una versión de64 bits maestro? CX.BAT/CX.LNK y HB.BAT/HB.LNK?

Gracias.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion