Hello Maurizio
with "-std" flag, the error is quite similar
mcom@X1:~/tmp$ hbmk2 -plat=win -comp=mingw64 prova.prg
Harbour 3.2.0dev (r2305191429)
Copyright (c) 1999-2021,
https://harbour.github.io/Compiling 'prova.prg'...
Lines 7, Functions/Procedures 1
Generating C source output to '/tmp/hbmk_5r6muy.dir/prova.c'... Done.
gcc: error: unrecognized command-line option ‘-std’
hbmk2: Error: Running linker. 1
gcc /tmp/hbmk_5r6muy.dir/prova.o /tmp/hbmk_5r6muy.dir/hbmk_tdmvi4.o -std -Wl,--start-group -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lwinmm -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oprova.exe -L/home/mcom/comp/hb32/lib
so I tried to comment out the entire line num 4466
mcom@X1:~/tmp$ hbmk2 -plat=win -comp=mingw64 prova.prg
Harbour 3.2.0dev (r2305191429)
Copyright (c) 1999-2021,
https://harbour.github.io/Compiling 'prova.prg'...
Lines 7, Functions/Procedures 1
Generating C source output to '/tmp/hbmk_mqenwa.dir/prova.c'... Done.
/usr/bin/ld: cannot find -lgtwin: No such file or directory
/usr/bin/ld: cannot find -lgtwvt: No such file or directory
/usr/bin/ld: cannot find -lgtgui: No such file or directory
/usr/bin/ld: cannot find -lhbmainstd: No such file or directory
/usr/bin/ld: cannot find -lwinmm: No such file or directory
/usr/bin/ld: cannot find -lkernel32: No such file or directory
/usr/bin/ld: cannot find -luser32: No such file or directory
/usr/bin/ld: cannot find -lgdi32: No such file or directory
/usr/bin/ld: cannot find -ladvapi32: No such file or directory
/usr/bin/ld: cannot find -lws2_32: No such file or directory
/usr/bin/ld: cannot find -liphlpapi: No such file or directory
/usr/bin/ld: cannot find -lwinspool: No such file or directory
/usr/bin/ld: cannot find -lcomctl32: No such file or directory
/usr/bin/ld: cannot find -lcomdlg32: No such file or directory
/usr/bin/ld: cannot find -lshell32: No such file or directory
/usr/bin/ld: cannot find -luuid: No such file or directory
/usr/bin/ld: cannot find -lole32: No such file or directory
/usr/bin/ld: cannot find -loleaut32: No such file or directory
/usr/bin/ld: cannot find -lmpr: No such file or directory
/usr/bin/ld: cannot find -lmapi32: No such file or directory
/usr/bin/ld: cannot find -limm32: No such file or directory
/usr/bin/ld: cannot find -lmsimg32: No such file or directory
/usr/bin/ld: cannot find -lwininet: No such file or directory
collect2: error: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc /tmp/hbmk_mqenwa.dir/prova.o /tmp/hbmk_mqenwa.dir/hbmk_ik59za.o -Wl,--start-group -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lwinmm -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oprova.exe -L/home/mcom/comp/hb32/lib
it can't find libraries, but this is another story... :) I afraid I can't solve it
thank you again
Enrico
Il giorno giovedì 29 giugno 2023 alle 08:25:55 UTC+2 Maurizio la Cecilia ha scritto: