Compilando sem BAT
hbmk2 test
hbmk2: Processando opções do ambiente: -comp=mingw
hbmk2: Processando arquivo de configuração: d:\harbour\bin\hbmk.hbc
Harbour 3.4.0dev (1662d538b6) (2019-01-28 19:13)
Copyright (c) 1999-2019, https://github.com/JoseQuintas/harbour34/
Compiling 'test.prg'...
Lines 442, Functions/Procedures 4
Generating C source output to 'C:\Users\joseq\AppData\Local\Temp\hbmk_tluke0.dir\test.c'... Done.
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x148): undefined reference to `HB_FUN_CHARREM'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x158): undefined reference to `HB_FUN_TEMPFILE'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x168): undefined reference to `HB_FUN_CREATEOBJECT'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x178): undefined reference to `HB_FUN_MILLISEC'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x188): undefined reference to `HB_FUN_DELETEFILE'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x198): undefined reference to `HB_FUN_GETPRINTER'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x1a8): undefined reference to `HB_FUN_HB_SETCODEPAGE'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x1b8): undefined reference to `HB_FUN_HBPRINTER'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x1c8): undefined reference to `HB_FUN_HB_VMMODE'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x1d8): undefined reference to `HB_FUN_DIRMAKE'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x1e8): undefined reference to `HB_FUN_HMG_PRINTER_INITUSERMESSAGES'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x1f8): undefined reference to `HB_FUN_GETDEFAULTPRINTER'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x208): undefined reference to `HB_FUN_HMG_PRINTER_SETPRINTERPROPERTIES'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x218): undefined reference to `HB_FUN_GETPRINTABLEAREAHORIZONTALOFFSET'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x228): undefined reference to `HB_FUN_GETPRINTABLEAREAVERTICALOFFSET'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x238): undefined reference to `HB_FUN_GETPRINTABLEAREAWIDTH'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x248): undefined reference to `HB_FUN_GETPRINTABLEAREAHEIGHT'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x258): undefined reference to `HB_FUN_SETJOBNAME'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x268): undefined reference to `HB_FUN_HMG_PRINTER_STARTDOC'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x278): undefined reference to `HB_FUN_HMG_PRINTER_STARTPAGE_PREVIEW'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x288): undefined reference to `HB_FUN_HMG_PRINTER_STARTPAGE'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x298): undefined reference to `HB_FUN_HMG_PRINTER_ENDPAGE'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x2a8): undefined reference to `HB_FUN_HMG_PRINTER_ENDPAGE_PREVIEW'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x2b8): undefined reference to `HB_FUN_HMG_PRINTER_H_IMAGE'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x2c8): undefined reference to `HB_FUN_HMG_PRINTER_SHOWPREVIEW'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x2d8): undefined reference to `HB_FUN_HMG_PRINTER_PRINTDIALOG'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x2e8): undefined reference to `HB_FUN_COS'
C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o:test.c:(.data+0x2f8): undefined reference to `HB_FUN_SIN'
collect2.exe: error: ld returned 1 exit status
hbmk2: Erro: Executando linkeditor. 1
gcc.exe C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/test.o C:/Users/joseq/AppData/Local/Temp/hbmk_tluke0.dir/hbmk_k40i5z.o -m32 -Wl,--nxcompat -Wl,--dynamicbase -Wl,--pic-executable,-e,_mainCRTStartup -mwindows -Wl,--start-group -Wl,-Bstatic -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtstd -lgtpca -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre2 -lhbzlib -Wl,-Bdynamic -Wl,--end-group -s -otest.exe -Ld:/harbour/lib/win/mingw -Ld:/cdrom/fontes/integra/sefazclass -Ld:/cdrom/fontes/integra/josequintas -Ld:/cdrom/fontes/integra/josequintas/bostaurus -Ld:/github/allgui/hmg3 -Ld:/github/allgui/hmge -Ld:/github/allgui/hwgui -Ld:/github/allgui/oohg
hbmk2: Hint: Add input file 'hbct.hbc' for missing Harbour function(s): Sin(),
Cos(), DirMake(), DeleteFile(), Millisec(), TempFile(), CharRem()
hbmk2: Hint: Install package hmge_miniprint and input file
'addons\hmge\hmge_miniprint.hbc' for missing Harbour function(s):
getprintableareaheight(), getprintableareawidth(),
getprintableareaverticaloffset(), getprintableareahorizontaloffset(),
GetDefaultPrinter(), getprinter()
hbmk2: Hint: Add input file 'xhb.hbc' for missing Harbour function(s):
GetDefaultPrinter(), hb_VMMode(), hb_SetCodepage(), CreateObject()
hbmk2: Hint: Install package hmge_hbprinter and input file
'addons\hmge\hmge_hbprinter.hbc' for missing Harbour function(s):
hbprinter()
hbmk2: Dica: Corrigir os nomes de funçõe(s) possivelmente digitado errado:
HMG_PRINTER_PRINTDIALOG() -> _hmg_printer_printdialog()
HMG_PRINTER_SHOWPREVIEW() -> _hmg_printer_showpreview()
HMG_PRINTER_H_IMAGE() -> _hmg_printer_h_image()
HMG_PRINTER_ENDPAGE_PREVIEW() -> _hmg_printer_endpage_preview()
HMG_PRINTER_ENDPAGE() -> _hmg_printer_endpage()
HMG_PRINTER_STARTPAGE() -> _hmg_printer_startpage()
HMG_PRINTER_STARTPAGE_PREVIEW() -> _hmg_printer_startpage_preview()
HMG_PRINTER_STARTDOC() -> _hmg_printer_startdoc()
HMG_PRINTER_SETPRINTERPROPERTIES() ->
_hmg_printer_setprinterproperties()
HMG_PRINTER_INITUSERMESSAGES() -> _hmg_printer_initusermessages()
hbmk2: Error: Referenced, missing, but unrecognized Harbour function(s):
HMG_PRINTER_INITUSERMESSAGES(), HMG_PRINTER_SETPRINTERPROPERTIES(),
SETJOBNAME(), HMG_PRINTER_STARTDOC(), HMG_PRINTER_STARTPAGE_PREVIEW(),
HMG_PRINTER_STARTPAGE(), HMG_PRINTER_ENDPAGE(),
HMG_PRINTER_ENDPAGE_PREVIEW(), HMG_PRINTER_H_IMAGE(),
HMG_PRINTER_SHOWPREVIEW(), HMG_PRINTER_PRINTDIALOG()
Atenção para esta parte, que mostra possivelmente o que indicar:
hbmk2: Hint: Add input file 'hbct.hbc' for missing Harbour function(s): Sin(),
Cos(), DirMake(), DeleteFile(), Millisec(), TempFile(), CharRem()
hbmk2: Hint: Install package hmge_miniprint and input file
'addons\hmge\hmge_miniprint.hbc' for missing Harbour function(s):
getprintableareaheight(), getprintableareawidth(),
getprintableareaverticaloffset(), getprintableareahorizontaloffset(),
GetDefaultPrinter(), getprinter()
hbmk2: Hint: Add input file 'xhb.hbc' for missing Harbour function(s):
GetDefaultPrinter(), hb_VMMode(), hb_SetCodepage(), CreateObject()
hbmk2: Hint: Install package hmge_hbprinter and input file
'addons\hmge\hmge_hbprinter.hbc' for missing Harbour function(s):
hbprinter()
E esta, provavelmente são funções novas da HMG (novas com relação a que tenho configurada)
hbmk2: Dica: Corrigir os nomes de funçõe(s) possivelmente digitado errado:
HMG_PRINTER_PRINTDIALOG() -> _hmg_printer_printdialog()
HMG_PRINTER_SHOWPREVIEW() -> _hmg_printer_showpreview()
HMG_PRINTER_H_IMAGE() -> _hmg_printer_h_image()
HMG_PRINTER_ENDPAGE_PREVIEW() -> _hmg_printer_endpage_preview()
HMG_PRINTER_ENDPAGE() -> _hmg_printer_endpage()
HMG_PRINTER_STARTPAGE() -> _hmg_printer_startpage()
HMG_PRINTER_STARTPAGE_PREVIEW() -> _hmg_printer_startpage_preview()
HMG_PRINTER_STARTDOC() -> _hmg_printer_startdoc()
HMG_PRINTER_SETPRINTERPROPERTIES() ->
_hmg_printer_setprinterproperties()
HMG_PRINTER_INITUSERMESSAGES() -> _hmg_printer_initusermessages()
hbmk2: Error: Referenced, missing, but unrecognized Harbour function(s):
HMG_PRINTER_INITUSERMESSAGES(), HMG_PRINTER_SETPRINTERPROPERTIES(),
SETJOBNAME(), HMG_PRINTER_STARTDOC(), HMG_PRINTER_STARTPAGE_PREVIEW(),
HMG_PRINTER_STARTPAGE(), HMG_PRINTER_ENDPAGE(),
HMG_PRINTER_ENDPAGE_PREVIEW(), HMG_PRINTER_H_IMAGE(),
HMG_PRINTER_SHOWPREVIEW(), HMG_PRINTER_PRINTDIALOG()
Ou seja... o próprio HBMK2 ensinando o que fazer pra resolver.
Basta um arquivo HBC bem configurado, que poderia vir pronto, ou criado pelos usuários da hmge
Detalhe: NEM USEI O HBC - foi justamente por isso que deu falta das funções. O HBMK2 já procurou sozinho pra mostrar isso, e não acrescentou automático porque ele não sabe se isso seria o certo a fazer, mostra para que o usuário decida.