Okd:\github\fivewin\samples>hbmk2 xmltree.prg -Id:\github\fivewin\include
hbmk2: Processing environment options: -comp=mingw
Harbour 3.2.0dev (r2503251254)
Copyright (c) 1999-2024, https://harbour.github.io/
Compiling 'xmltree.prg'...
Lines 5200, Functions/Procedures 4
Generating C source output to 'C:\Users\joseq\AppData\Local\Temp\hbmk_vggs6m.dir\xmltree.c'... Done.
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x48): undefined reference to `HB_FUN_TWINDOW'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x128): undefined reference to `HB_FUN_MENUBEGIN'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x138): undefined reference to `HB_FUN_MENUADDITEM'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x148): undefined reference to `HB_FUN_MSGABOUT'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x158): undefined reference to `HB_FUN_MENUEND'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x168): undefined reference to `HB_FUN_TTREEVIEW'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x198): undefined reference to `HB_FUN_TLISTBOX'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x1b8): undefined reference to `HB_FUN_TSPLITTER'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x1f8): undefined reference to `HB_FUN_TXMLDOCUMENT'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x208): undefined reference to `HB_FUN_TXMLITERATOR'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x368): undefined reference to `HB_FUN_HEVAL'
d:/harbour/comp/mingw32/bin/../lib/gcc/i686-w64-mingw32/15.1.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o:xmltree.c:(.data+0x378): undefined reference to `HB_FUN_FW_GT'
collect2.exe: error: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/xmltree.o C:/Users/joseq/AppData/Local/Temp/hbmk_vggs6m.dir/hbmk_zvjfpx.o -mconsole -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 -oxmltree.exe -Ld:/harbour/lib/win/mingw
hbmk2: Hint: Add option 'xhb.hbc' for missing function(s): HEval(),
TXMLIterator(), TXMLDocument()
hbmk2: Error: Referenced, missing, but unknown function(s): TWINDOW(),
MENUBEGIN(), MENUADDITEM(), MSGABOUT(), MENUEND(), TTREEVIEW(),
TLISTBOX(), TSPLITTER(), FW_GT()
Deu falta de funções do fivewin.
Precisa acrescentar o PATH de onde estão as LIBs, e o nome delas.
Nota: Aquele HBC já faz isso mas não usei.
Algumas das funções o HBMK2 reconheceu como parecendo as do xhb.hbc
Se não tiver o hbc seria -L com path e -lcom lib, provavelmente -lxhb
Mas vamos as do fivewin fivehg ou algo assim
Só sei porque também uso fivewin.

