Harbour and xHarbour para MingW GCC1501

User avatar
karinha
Posts: 8079
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 12 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by karinha »

Muchas gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
Posts: 8079
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 12 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by karinha »

Enrico es aparentemente un compilador muy bueno y súper rápido. Me gustó mucho.

Enrico, apparently, is an excellent quality and super fast compiler. I really liked it.

https://imgur.com/0VDSiVB

Image

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
Posts: 8079
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 12 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by karinha »

Maestros: Enrico/Navarro: ¿Cómo creo un COMP.BAT y un COMP.LNK o un GO.BAT y TUTOR04.MAK para utilizar GCC151? ¿Y cómo incorporo los archivos *.RES al proyecto como en BCC?

Masters: Enrico/Navarro: How do I create a COMP.BAT and a COMP.LNK or a GO.BAT and TUTOR04.MAK to use GCC151? And how do I incorporate the *.RES files into the project like in BCC?

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Enrico Maria Giordano
Posts: 8804
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 10 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by Enrico Maria Giordano »

karinha wrote: Tue May 13, 2025 2:36 pm Enrico es aparentemente un compilador muy bueno y súper rápido. Me gustó mucho.

Enrico, apparently, is an excellent quality and super fast compiler. I really liked it.
Are you sure? It is the slower of the 3 compilers I'm using to build [x]Harbour. The faster is MSC. MGW generates the biggest EXEs (MSC the smallest).

Anyway, Is the new build working fine?
User avatar
karinha
Posts: 8079
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 12 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by karinha »

Sí, Enrico, totalmente seguro. BUILDG.bat funciona muy rápido. El ejecutable es tan rápido o más rápido que el generado por BCC, me gustó mucho. Todavía no sé cómo generar el .BATS de compilación como en BCC para incorporar el .RES.

Yes Enrico, absolutely sure. BUILDG.bat works very fast. The executable is as fast or faster than the one generated by BCC, I really liked it. I just don't know yet how to generate the compilation .BATS like in BCC to incorporate the .RES.

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Enrico Maria Giordano
Posts: 8804
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 10 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by Enrico Maria Giordano »

Can I see the compile batch you are using? buildg.bat does not work for me:

Code: Select all | Expand

cannot find -lfivehg
cannot find -lfivehgc
cannot find -l.\..\lib\libmysql32
User avatar
Enrico Maria Giordano
Posts: 8804
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 10 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by Enrico Maria Giordano »

Never mind, I manage to fix the batch. Ok, the new MGW seems to work fast as MSC with small FWH samples. But it is still very slow building Harbour and xHarbour, sorry. And the EXE generated with MGW is still bigger (6 MB vs. 4 MB).
User avatar
karinha
Posts: 8079
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 12 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by karinha »

Code: Select all | Expand

@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for Harbour...    and GCC - May. 2019   Harbour development power  ³Ü
ECHO ³ (c) FiveTech 1993-2019 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

ECHO Compiling...

if "%fwh%" == "" set fwh=.\..

set hdir=c:\HBGCC151
set hdirc=%hdir%\bin\win\mingw\harbour.exe
set hlibs=%hdir%\lib\win\mingw
set mingw=c:\gcc1501
set path=%mingw%\bin

%hdirc% %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2>> comp2.log

IF ERRORLEVEL 1 GOTO COMPILEERROR

@type comp.log
@type comp2.log

%mingw%\bin\gcc -c %1.c -o%1.o -I%hdir%\include -I%mingw%\include -Wall > comp.log 2>> comp2.log

IF ERRORLEVEL 1 GOTO COMPILEERROR

if exist %1.rc %mingw%\bin\windres -D__FLAT__ -DDIALOG=DIALOGEX -i%1.rc -o_%1.o

IF ERRORLEVEL 1 GOTO RESOURCESERROR

if not exist %1.rc %mingw%\bin\gcc -o%1.exe %1.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -Wl,--enable-stdcall-fixup -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lshell32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lmpr -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbdebug -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -lhbziparc -lminizip -lhbmzip -lhbziparc -lpng -Wl,--end-group > b32.gc

if exist %1.rc %mingw%\bin\gcc -o%1.exe %1.o _%1.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -Wl,--enable-stdcall-fixup -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lshell32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -lmsimg32 -lwin32k -loledlg -lstdc++ -lmfcuia32 -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lmpr -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbdebug -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -lhbziparc -lminizip -lhbmzip -lhbziparc -lpng -Wl,--end-group > b32.gc

IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built

%1

rem delete temporary files

@del %1.c

@if exist %1.rc del _%1.o

GOTO EXIT

ECHO

:RESOURCESERROR
ECHO * Resources errors *
GOTO EXIT

:COMPILEERROR
@type comp.log
ECHO * Compile errors *
GOTO EXIT

:LINKERROR
ECHO * Link errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: Buildg [Program]     {-- No especifiques la extensi¢n PRG
ECHO                                 {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:EXIT
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
Posts: 8079
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 12 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by karinha »

Enrico Maria Giordano wrote: Tue May 13, 2025 4:20 pm Never mind, I manage to fix the batch. Ok, the new MGW seems to work fast as MSC with small FWH samples. But it is still very slow building Harbour and xHarbour, sorry. And the EXE generated with MGW is still bigger (6 MB vs. 4 MB).
Esto no es importante Enrico, yo uso PECOMPACT.exe para comprimir el ejecutable.

This is not important Enrico, I use PECOMPACT.exe to compress the executable.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Enrico Maria Giordano
Posts: 8804
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 10 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by Enrico Maria Giordano »

karinha wrote: Tue May 13, 2025 5:45 pm
Enrico Maria Giordano wrote: Tue May 13, 2025 4:20 pm Never mind, I manage to fix the batch. Ok, the new MGW seems to work fast as MSC with small FWH samples. But it is still very slow building Harbour and xHarbour, sorry. And the EXE generated with MGW is still bigger (6 MB vs. 4 MB).
Esto no es importante Enrico, yo uso PECOMPACT.exe para comprimir el ejecutable.

This is not important Enrico, I use PECOMPACT.exe to compress the executable.

Regards, saludos.
I use a compressor too (upx) but the EXE has to be decompressed before the execution, so the smaller is the better.
User avatar
karinha
Posts: 8079
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 12 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by karinha »

Enrico, I prefer this discussion to end. What I need now is to be able to compile using MINGW GCC1501, using a COMP.BAT and COMP.LNK or a GO.BAT and a TUTOR04.MAK or a PROJ.BAT and a PROJ.HBP, do you understand? Can you create one of these models?

Enrico, it may be that the .EXE is larger, because of the GCC LIBS, as you gain experience, you will eliminate the LIBS that do not need to be used, do you understand?

Enrico, prefiero esta discusión hasta el final. Lo que necesito ahora, es poder compilar usando MINGW GCC1501, usando un COMP.BAT y COMP.LNK o un GO.BAT y un TUTOR04.MAK o un PROJ.BAT y un PROJ.HBP, ¿me entiendes? ¿Puedes crear uno de estos modelos?

Enrico, puede ser que el .EXE sea más grande, por las GCC LIBS, a medida que ganes experiencia, eliminarás las LIBS que no es necesario utilizar, ¿entiendes?

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Enrico Maria Giordano
Posts: 8804
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 10 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by Enrico Maria Giordano »

karinha wrote: Tue May 13, 2025 6:05 pmEnrico, I prefer this discussion to end. What I need now is to be able to compile using MINGW GCC1501, using a COMP.BAT and COMP.LNK or a GO.BAT and a TUTOR04.MAK or a PROJ.BAT and a PROJ.HBP, do you understand? Can you create one of these models?
No, sorry. What's wrong with buildg.bat?
karinha wrote: Tue May 13, 2025 6:05 pmEnrico, it may be that the .EXE is larger, because of the GCC LIBS, as you gain experience, you will eliminate the LIBS that do not need to be used, do you understand?
The linker already takes care of that. You cannot eliminate any of the used libraries. Anyway, having MinGW as an alternative is certainly a good thing.
User avatar
karinha
Posts: 8079
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 12 times
Contact:

Re: Harbour and xHarbour para MingW GCC1501

Post by karinha »

Good morning Enrico, buildg.bat is for testing a .PRG, I want to compile an entire project.
Without a doubt, this version 15.1 of GCC is super stable.

Buenos días Enrico, buildg.bat es para probar un .PRG, quiero compilar un proyecto completo.
Sin duda esta versión 15.1 de GCC es súper estable.

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
JoséQuintas
Posts: 83
Joined: Tue Feb 09, 2021 4:20 pm
Been thanked: 4 times

Re: Harbour and xHarbour para MingW GCC1501

Post by JoséQuintas »

I use fivewin.hbc

Code: Select all | Expand

incpaths=include

libpaths=lib
{mingw}libs=fwchanged
{mingw}libs=fivehg
{mingw}libs=fivehgc

{mingw}libs=user32 winspool kernel32 comctl32 comdlg32 gdi32 gdiplus ole32
{mingw}libs=oleaut32 psapi oledlg mfcuia32 msimg32 win32k stdc++ version
{mingw}libs=uuid winmm vfw32 wsock32
{mingw}libs=uxtheme

libs=hbwin.hbc
libs=xhb.hbc
libs=hbct.hbc
libs=hbmzip.hbc
libs=hbziparc.hbc
fwchanged is my library to modify fivewin
I do not need to modify physical fivewin libraries, i need only to inform my library first.

Why to complicate ?

I do the same with any library, with no setup change.
hbmk2 fivewin.hbc
hbmk2 hwgui.hbc
hbmk2 hmge.hbc\
hbmk2 hmg3.hbc
hbmk2 oohg.hbc

And on my application, that I group more than one library:
hbmk2 jpa.hbp gtwvg.hbc fivewin.hbc hwgui.hbc
José M. C. Quintas Brazil
gtwvg, fivewin 25.01, hwgui, mingw 15.1 (32 bits)
Post Reply