".\WinXP\WindowsXP.Manifest""./WinXP/WindowsXP.Manifest"".\WinXP\WindowsXP.Manifest""./WinXP/WindowsXP.Manifest"@ECHO ON
CLS
ECHO Compiling...
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
SET fwh=C:\FwH1905
REM // Generando el .c
%hdirc% TUTOR01 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
%hdirc% TUTOR02 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
%hdirc% TUTOR03 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
%hdirc% TUTOR04 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
REM // Generando el .o
%mingw%\bin\gcc -c -w TUTOR01.c -oTUTOR01.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
%mingw%\bin\gcc -c -w TUTOR02.c -oTUTOR02.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
%mingw%\bin\gcc -c -w TUTOR03.c -oTUTOR03.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
%mingw%\bin\gcc -c -w TUTOR04.c -oTUTOR04.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
if exist tutor04.rc %mingw%\bin\windres -D__FLAT__ -DDIALOG=DIALOGEX -itutor04.rc -o_tutor04.o --preprocessor "gcc -E -xc-header -include windows.h" >> comp.log 2>> warnings.log
rem aqui, cuasi que funciona... jajaja - My god!
if not exist TUTOR04.rc %mingw%\bin\gcc -oTUTOR04.exe TUTOR04.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -Wl,--enable-stdcall-fixup -Wl,--start-group -lfivehg -lfivehgc -l%fwh%\lib\libmysql32 -lgtgui -luser32 -lshell32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lmpr -lws2_32 -liphlpapi -luxtheme -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 >> comp.log 2>> warnings.log
if exist TUTOR04.rc %mingw%\bin\gcc -oTUTOR04.exe TUTOR04.o _TUTOR04.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -Wl,--enable-stdcall-fixup -Wl,--start-group -lfivehg -lfivehgc -l%fwh%\lib\libmysql32 -lgtgui -luser32 -lshell32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -lmsimg32 -lwin32k -loledlg -lstdc++ -lmfcuia32 -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lws2_32 -liphlpapi -lmpr -luxtheme -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 >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
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 ERROR
ECHO NAO COMPILOU
GOTO EXIT
:NOEXIST
ECHO The specified PRG does not exist
:EXIT-l%fwh%\lib\libmysql32-llibmysql32c:/gcc1501/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -libmysql32: No such file or directory
collect2.exe: error: ld returned 1 exit status
¡ME RINDO! Gracias Enrico por tu ayuda. Este compilador es demasiado complicado para mi gusto personal. Me quedaré con BCC77 ya que no tengo dificultades para compilar con él. En otra ocasión vuelvo a intentarlo con este compilador. Hasta ahora solo he perdido el tiempo.
I GIVE UP! Thanks Enrico for your help. This compiler is too complicated for my personal taste. I'll stick with BCC77, which I have no difficulty compiling with. I'll try again with this compiler another time. So far, I've just wasted time.
Gracias, tks.
Regards, saludos.
@ECHO ON
CLS
ECHO Compiling...
SET hdir=e:\fw\harbour
SET hdirc=%hdir%\bin\win\mingw\harbour.exe
SET hlibs=%hdir%\lib\win\mingw
SET mingw=e:\fw\temp\mgw32
SET path=%mingw%\bin
SET fwh=e:\fw\fwharbour
REM // Generando el .c
REM %hdirc% TUTOR01 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
REM %hdirc% TUTOR02 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
REM %hdirc% TUTOR03 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
%hdirc% TUTOR04 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
REM // Generando el .o
REM %mingw%\bin\gcc -c -w TUTOR01.c -oTUTOR01.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
REM %mingw%\bin\gcc -c -w TUTOR02.c -oTUTOR02.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
REM %mingw%\bin\gcc -c -w TUTOR03.c -oTUTOR03.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
%mingw%\bin\gcc -c -w TUTOR04.c -oTUTOR04.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
if exist tutor04.rc %mingw%\bin\windres -D__FLAT__ -DDIALOG=DIALOGEX -itutor04.rc -o_tutor04.o --preprocessor "gcc -E -xc-header -include windows.h" >> comp.log 2>> warnings.log
rem aqui, cuasi que funciona... jajaja - My god!
if not exist TUTOR04.rc %mingw%\bin\gcc -oTUTOR04.exe TUTOR04.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -Wl,--enable-stdcall-fixup -Wl,--start-group -lfivehg -lfivehgc -llibmysql32 -lgtgui -luser32 -lshell32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lmpr -lws2_32 -liphlpapi -luxtheme -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 >> comp.log 2>> warnings.log
if exist TUTOR04.rc %mingw%\bin\gcc -oTUTOR04.exe TUTOR04.o _TUTOR04.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -Wl,--enable-stdcall-fixup -Wl,--start-group -lfivehg -lfivehgc -llibmysql32 -lgtgui -luser32 -lshell32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -lmsimg32 -lwin32k -loledlg -lstdc++ -lmfcuia32 -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lws2_32 -liphlpapi -lmpr -luxtheme -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 >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
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 ERROR
ECHO NAO COMPILOU
GOTO EXIT
:NOEXIST
ECHO The specified PRG does not exist
:EXITREM MINGW.BAT by Enrico Maria Giordano. 23/05/2025 - Very Good.
@ECHO OFF
CLS
ECHO Compiling MINGW GCC 15.01 WITH HARBOUR FOR FWH...
ECHO.
ECHO Wait a moment please...
REM SET hdir=e:\fw\harbour
REM SET hdirc=%hdir%\bin\win\mingw\harbour.exe
REM SET hlibs=%hdir%\lib\win\mingw
REM SET mingw=e:\fw\temp\mgw32
REM SET path=%mingw%\bin
REM SET fwh=e:\fw\fwharbour
SET hdir=c:\HBGCC151
SET hdirc=%hdir%\bin\win\mingw\harbour.exe
SET hlibs=%hdir%\lib\win\mingw
SET mingw=c:\mingw
SET path=%mingw%\bin
SET fwh=C:\FwH1905
REM // Generando el .c
REM TUTOR04.PRG, es el MENU PRINCIPAL, debe venir primero.
%hdirc% TUTOR04 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
%hdirc% TUTOR01 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
%hdirc% TUTOR02 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
%hdirc% TUTOR03 /m /n /i%fwh%\include;%hdir%\include /w /p %2 %3 >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
REM // Generando el .o
%mingw%\bin\gcc -c -w TUTOR04.c -oTUTOR04.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
%mingw%\bin\gcc -c -w TUTOR01.c -oTUTOR01.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
%mingw%\bin\gcc -c -w TUTOR02.c -oTUTOR02.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
%mingw%\bin\gcc -c -w TUTOR03.c -oTUTOR03.o -I%hdir%\include -I%mingw%\include >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
REM // EVITAR PROBLEMAS EN EL DIALOGO CON BITMAPS DE BORLAND.
IF EXIST tutor04.rc %mingw%\bin\windres -D__FLAT__ -DDIALOG=DIALOGEX -itutor04.rc -o_tutor04.o --preprocessor "gcc -E -xc-header -include windows.h" >> comp.log 2>> warnings.log
REM // generando el executable sin .rc
IF NOT EXIST TUTOR04.rc %mingw%\bin\gcc -oTUTOR04.exe TUTOR04.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -Wl,--enable-stdcall-fixup -Wl,--start-group -lfivehg -lfivehgc -llibmysql32 -lgtgui -luser32 -lshell32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lmpr -lws2_32 -liphlpapi -luxtheme -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 >> comp.log 2>> warnings.log
REM // generando el executable con .rc
IF EXIST TUTOR04.rc %mingw%\bin\gcc -oTUTOR04.exe TUTOR04.o _TUTOR04.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -Wl,--enable-stdcall-fixup -Wl,--start-group -lfivehg -lfivehgc -llibmysql32 -lgtgui -luser32 -lshell32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -lmsimg32 -lwin32k -loledlg -lstdc++ -lmfcuia32 -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lws2_32 -liphlpapi -lmpr -luxtheme -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 >> comp.log 2>> warnings.log
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO.
ECHO.
ECHO * Application successfully built
IF EXIST TUTOR04.exe TUTOR04.exe
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 ERROR:
ECHO COMPILER ERROR(MingW).
GOTO EXIT
:NOEXIST
ECHO The specified PRG does not exist
:EXIT
REM FIN / END -kapiabafwh@gmail.com-Can you confirm that MinGW 15.1.0 builds are all working fine, please? I mean 32/64 bit with Harbour/xHarbour.
Good afternoon Enrico. I am finishing a system that I have to deliver, and as soon as possible, I will return to this subject. I do not use 64-bit Windows and I do not have a 64-bit FWH. The tests were done with FWH/MINGW for 32-bit FWH for HARBOUR.
I do not have XHARBOUR for MINGW yet. Later, you would be so kind as to make XHARBOUR for MINGW available to me, although I have not seen any example of MINGW for XHARBOUR.
Buenas tardes Enrico. Estoy terminando un sistema que tengo que entregar, y en cuanto pueda volveré sobre este tema. No uso Windows de 64 bits y no tengo FWH de 64 bits. Se realizaron pruebas con FWH/MINGW para FWH de 32 bits para HARBOUR.
TodavÃa no tengo XHARBOUR para MINGW. Entonces serÃa tan amable de hacer que XHARBOUR esté disponible para MINGW, aunque no he visto ningún ejemplo de MINGW para XHARBOUR.
Estoy esperando que el Maestro Navarro me proporcione un COMP.BAT/COMP.LNK o GO.BAT/PROJ.MAK para XHARBOUR. Creo que está un poco ocupado. Esperemos a que aclare su mente y dirija su atención a este tema, ¿de acuerdo?
Gracias, tks.
Regards, saludos.
51 files! I need only one little PRG to reproduce the problem here. Otherwise I cannot help you, sorry.
Enrico Maria Giordano wrote: 51 files! I need only one little PRG to reproduce the problem here. Otherwise I cannot help you, sorry.Enrico, no te preocupes, según las pruebas que he realizado, no es posible migrar ningún proyecto a este compilador. Continuaré con XHARBOUR y BCC77.
As you wish. Someone else here that is willing to test Harbour and xHarbour builds for MinGW, please?
Enrico, note: in the first project I sent, you only need to look at RMAILAMB.PRG, nothing else.
Enrico, nota: en el primer proyecto que te envié, solo necesitas mirar RMAILAMB.PRG, nada más.
Gracias, tks.
Regards, saludos.
Too big, sorry. You have to reduce it to the minimum possible yet showing the problem.