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

Post Reply
Cgallegoa
Posts: 530
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador
Contact:

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

Post by Cgallegoa »

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-26.03, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1 - MSVC 2022 ***

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

Estimado Carlos,

go64.bat

Code: Select all | Expand

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

Code: Select all | Expand

-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
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

go32.bat

Code: Select all | Expand

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
User avatar
karinha
Posts: 8720
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

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

Post by karinha »

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
Cgallegoa
Posts: 530
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador
Contact:

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

Post by Cgallegoa »

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-26.03, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1 - MSVC 2022 ***

User avatar
alex2002
Posts: 23
Joined: Fri Apr 18, 2008 2:41 pm
Location: Belo Horizonte / MG - Brasil

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

Post by alex2002 »

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

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

karinha wrote: Fri May 29, 2026 2: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.

Estimado Joao,

CX.BAT

Code: Select all | Expand

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

Code: Select all | Expand

/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

Code: Select all | Expand

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

Code: Select all | Expand

/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
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

Cgallegoa wrote: Fri May 29, 2026 3: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

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
User avatar
karinha
Posts: 8720
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

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

Post by karinha »

Estimado Maestro, estes archivos és para FWH64 bits?

Gracias, tks.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Cgallegoa
Posts: 530
Joined: Sun Oct 16, 2005 3:32 am
Location: Quito - Ecuador
Contact:

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

Post by Cgallegoa »

Maestro, gracias, genial como siempre. :D

Un abrazo,

Saludos,

Carlos Gallego

*** FWH-26.03, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1 - MSVC 2022 ***

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

karinha wrote: Fri May 29, 2026 3:49 pm

Estimado Maestro, estes archivos és para FWH64 bits?

Gracias, tks.

Regards, saludos.

32 bits

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
karinha
Posts: 8720
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

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

Post by karinha »

Antonio Linares wrote: Fri May 29, 2026 8:36 pm
karinha wrote: Fri May 29, 2026 3:49 pm

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
Post Reply