Enrico Maria Giordano wrote: Here it is:Muchas gracias, tks.
https://wormhole.app/m9rEdO#YkbTkB4XeWX6B4cglbKDhA
Regards, saludos.
Enrico Maria Giordano wrote: Here it is:Muchas gracias, tks.
https://wormhole.app/m9rEdO#YkbTkB4XeWX6B4cglbKDhA
Please try it and report back.

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.
karinha wrote: Enrico es aparentemente un compilador muy bueno y súper rápido. Me gustó mucho.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).
Enrico, apparently, is an excellent quality and super fast compiler. I really liked it.
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.
cannot find -lfivehg
cannot find -lfivehgc
cannot find -l.\..\lib\libmysql32Never 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).
@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
:EXITEnrico Maria Giordano wrote: 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.
karinha wrote:I use a compressor too (upx) but the EXE has to be decompressed before the execution, so the smaller is the better.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.
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.
karinha wrote: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?No, sorry. What's wrong with buildg.bat?
karinha wrote: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?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.
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.
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.hbcJosé M. C. Quintas Brazil
gtwvg, fivewin 25.12, hwgui, mingw 15.2 (32 bits)