Erro compilação Minigui ultima versão 19.04

Projeto MiniGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

Avatar do usuário
RamonXHB
Usuário Nível 3
Usuário Nível 3
Mensagens: 159
Registrado em: 03 Mar 2007 14:55

Erro compilação Minigui ultima versão 19.04

Mensagem por RamonXHB »

Boa tarde a todos !
Estava atualizando a Minigui para a ultima versão, e ao recompilar um projeto para teste, apresentou a mensagem abaixo:
Error: Unresolved external '_HB_FUN_HB_VMMODE' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|ErrorSys
Uso XdevStudio para compilar.

Alguém já passou por isso ?
Ramon A. Körber Jr.
Harbour 3.2 MiniGUI Extended Edition
xDevStudio v0.70 - BCC 5.82 - Lazarus FreePascal
Firebird
AdoDB - ODBC
Windows - Linux
Linux User Number 404280
MSN - ramon15061959@hotmail.com
Skype - ramon15061959
ICQ - UIN 82580595
Avatar do usuário
rubens
Colaborador
Colaborador
Mensagens: 1520
Registrado em: 16 Ago 2003 09:05
Localização: Nova Xavantina - MT

Erro compilação Minigui ultima versão 19.04

Mensagem por rubens »

Boa tarde...

Tô com o mesmo problema e mais alguns...

Código: Selecionar todos

Error: Unresolved external '_HB_FUN_CHARREM' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_browse
Error: Unresolved external '_HB_FUN_TEMPFILE' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_chklabel
Error: Unresolved external '_HB_FUN_CREATEOBJECT' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_activex
Error: Unresolved external '_HB_FUN_MILLISEC' referenced from D:\PDVLITE\TEMP\NFC.OBJ
Error: Unresolved external '_HB_FUN_DELETEFILE' referenced from D:\PDVLITE\TEMP\NFC.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTER' referenced from D:\PDVLITE\TEMP\COMPRAS.OBJ
Error: Unresolved external '_HB_FUN_HB_SETCODEPAGE' referenced from D:\PDVLITE\TEMP\PDVLITE.OBJ
Error: Unresolved external '_HB_FUN_HB_VMMODE' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|ErrorSys
Error: Unresolved external '_HB_FUN_HBPRINTER' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_report
Error: Unresolved external '_HB_FUN_HB_ZIPFILE' referenced from D:\PDVLITE\TEMP\EMAIL.OBJ
Error: Unresolved external '_HB_FUN_DIRMAKE' referenced from D:\PDVLITE\TEMP\GERNFCE.OBJ
Error: Unresolved external '_HB_FUN__HMG_PRINTER_INITUSERMESSAGES' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_SETPRINTERPROPERTIES' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN_GETPRINTABLEAREAHORIZONTALOFFSET' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN_GETPRINTABLEAREAVERTICALOFFSET' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN_GETPRINTABLEAREAWIDTH' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN_GETPRINTABLEAREAHEIGHT' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_SETJOBNAME' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_STARTDOC' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_STARTPAGE_PREVIEW' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_STARTPAGE' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_H_IMAGE' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_ENDPAGE_PREVIEW' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_ENDPAGE' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_SHOWPREVIEW' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_ENDDOC' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN__HMG_PRINTER_PRINTDIALOG' referenced from C:\MINIGUI\LIB\MINIGUI.LIB|h_graph
Error: Unresolved external '_HB_FUN_COS' referenced from D:\PDVLITE\TEMP\ZE_SPEDDANFE.OBJ
Error: Unresolved external '_HB_FUN_SIN' referenced from D:\PDVLITE\TEMP\ZE_SPEDDANFE.OBJ
hbmk2: Error: Running linker. 2
Quando compilo direto pela IDE não dá problema...

Meu HBP

Código: Selecionar todos

-oPDVLITE

-mt
-b
-w0
-es0
-n
-trace 
-strip
-inc
-st
-gui
-gtgui
-workdir=temp\
-quiet
-icon=mdv.ico 
-jobs=%NUMBER_OF_PROCESSORS%
-tshead=DATAVER

-lminigui
-lhbwin 
-lhbhpdf 
-llibhpdf 
-lpng 
-lhbzebra 

-iC:\Minigui\Include;
-LC:\minigui\lib;
-LC:\Borland\BCC55\lib;

hbmzip.hbc
hbzebra.hbc

PDVLITE.PRG
caixa.prg
clientes.prg
Compras.prg
Contas.prg
CtPagar.prg
email.prg
FastRepH.prg
FechaVenda.prg
fornece.prg
funcoes.PRG
gernfce.prg
NFC.PRG
pdv.PRG
personal.prg
produtos.prg
RelMono.prg
ze_miscfunc.prg
ze_SpedDaGeral.prg
ze_SpedDaNFCe.prg
ze_SpedDaNfe.prg
ze_spedxmlClass.prg
ze_xmlfunc.prg
"Eu e minha casa servimos ao Senhor e você ???"
Avatar do usuário
RamonXHB
Usuário Nível 3
Usuário Nível 3
Mensagens: 159
Registrado em: 03 Mar 2007 14:55

Erro compilação Minigui ultima versão 19.04

Mensagem por RamonXHB »

Na versão 19.02 compila normalmente
Ramon A. Körber Jr.
Harbour 3.2 MiniGUI Extended Edition
xDevStudio v0.70 - BCC 5.82 - Lazarus FreePascal
Firebird
AdoDB - ODBC
Windows - Linux
Linux User Number 404280
MSN - ramon15061959@hotmail.com
Skype - ramon15061959
ICQ - UIN 82580595
Softwhouse
Usuário Nível 3
Usuário Nível 3
Mensagens: 324
Registrado em: 07 Dez 2011 18:44
Localização: Porto Alegre/RS

Erro compilação Minigui ultima versão 19.04

Mensagem por Softwhouse »

A última atualização foi corrigida, não seria isso ?
Fernando
Avatar do usuário
Nascimento
Usuário Nível 4
Usuário Nível 4
Mensagens: 763
Registrado em: 19 Jul 2008 12:11
Localização: OLINDA-PE

Erro compilação Minigui ultima versão 19.04

Mensagem por Nascimento »

pelo que vi esta faltando lib´s no .hbp
como eu sempre falei, quando se usa a ide ela ja chama todas as lib´s possiveis, por isso é muito raro da erros
de cabeça não da pra dizer qual libs faltam mais vou olhar mais tarde o erro e tentar dizer quais faltam

acho que faltam essas aqui no seu .hbp amigo rubens
-lhbct
-lhbmemio
-lminigui
-lhbprinter
-lminiprint
-lrddleto
-lhbwin
-lxhb
-lhbhpdf
-llibhpdf
-lpng
-lhbzebra
#----------------------------
-lhbziparc
-lhbmzip
-lminizip
sem a ide vc tem que adicionar todas as libs que usam no seu .prg
tenho a mania de falar que é quase feito o .lnk do blinker rsrs
A arte de programar é simplesmente fazer seus pensamentos serem interpretados por uma maquina :) clipper 5.3 /harbour/minigui
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Erro compilação Minigui ultima versão 19.04

Mensagem por JoséQuintas »

rubens escreveu:Tô com o mesmo problema e mais alguns...
Uma coisa é uma coisa, e outra coisa é outra coisa...

Está dando falta de funções do Harbour.
Faz sentido, já que não fazem parte da HMGE - pelo menos se a HMGE não usar.

E se é Harbour, sempre pode usar o hbmk2 pra pedir ajuda.
hbmk2 -find hb_setcodepage

xhb.hbc (instalado):

hb_SetCodepage()
No caso dessa função, é acrescentar xhb.hbc
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
rubens
Colaborador
Colaborador
Mensagens: 1520
Registrado em: 16 Ago 2003 09:05
Localização: Nova Xavantina - MT

Erro compilação Minigui ultima versão 19.04

Mensagem por rubens »

Bom dia...
Nascimento realmente tava faltando lib mesmo...
daí o HBP ficou assim
-oPDVLITE

-mt
-b
-w0
-es0
-n
-trace
-strip
-inc
-st
-gui
-gtgui
-workdir=temp\
-quiet
-icon=mdv.ico
-jobs=%NUMBER_OF_PROCESSORS%
-tshead=DATAVER

-lminigui
-lhbwin
-lhbhpdf
-llibhpdf
-lpng
-lhbzebra
-lhbct
-lhbmemio
-lhbprinter
-lminiprint
-lxhb
-lhbziparc

-iC:\Minigui\Include;
-LC:\minigui\lib;

hbmzip.hbc
hbzebra.hbc

PDVLITE.PRG
caixa.prg
clientes.prg
Compras.prg
Contas.prg
CtPagar.prg
email.prg
FastRepH.prg
FechaVenda.prg
fornece.prg
funcoes.PRG
gernfce.prg
NFC.PRG
pdv.PRG
personal.prg
produtos.prg
RelMono.prg
ze_miscfunc.prg
ze_SpedDaGeral.prg
ze_SpedDaNFCe.prg
ze_SpedDaNfe.prg
ze_spedxmlClass.prg
ze_xmlfunc.prg
o meu BAT de configuração está assim
@echo off
SET PATH=%Path%;C:\Borland\BCC55\bin\;C:\Minigui\Harbour\Bin;
SET LIB=C:\Minigui\lib;C:\Minigui\Harbour\Lib;C:\Borland\BCC55\Lib;C:\Minigui\Harbour\Contrib;
SET INCLUDE=C:\Minigui\Include;C:\Minigui\Harbour\Include;C:\Borland\BCC55\Include;
C:
CD\DATANOVO
%SystemRoot%\system32\cmd.exe

Agora veja só o problema que vejo em ter que fazer a configuração e não compilar com a IDE.
No Bat de configuração tem "SET LIB=C:\Minigui\lib" então não precisaria da linha "-LC:\minigui\lib;" só que se eu não colocar na compilação dá erro de MINIGUI.LIB não encontrada... e por aí vai. É muita encrenquinha sabe, que faz você perder horas e horas... Só que temos que nos adaptar aos problemas e resolvê-los...
bom de qualquer forma compilou..
Obrigado
Rubens
"Eu e minha casa servimos ao Senhor e você ???"
Avatar do usuário
rubens
Colaborador
Colaborador
Mensagens: 1520
Registrado em: 16 Ago 2003 09:05
Localização: Nova Xavantina - MT

Erro compilação Minigui ultima versão 19.04

Mensagem por rubens »

Quintas...

Realmente, tinha me esquecido dessa ajuda do HBMK2..
Obrigado
"Eu e minha casa servimos ao Senhor e você ???"
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Erro compilação Minigui ultima versão 19.04

Mensagem por JoséQuintas »

rubens escreveu:Agora veja só o problema que vejo em ter que fazer a configuração e não compilar com a IDE.
No Bat de configuração tem "SET LIB=C:\Minigui\lib" então não precisaria da linha "-LC:\minigui\lib;" só que se eu não colocar na compilação dá erro de MINIGUI.LIB não encontrada... e por aí vai.
É muita encrenquinha sabe, que faz você perder horas e horas...
Só que temos que nos adaptar aos problemas e resolvê-los...
Pois é... tudo isso poderia ser resolvido se viesse um HBC.
Ou até se o pessoal do grupo mantivesse um arquivo desses pra uso do fórum.
E nem importa compilador C, Harbour/XHarbour, IDE ou linha de comando, etc....
Fazer o quê?
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Erro compilação Minigui ultima versão 19.04

Mensagem por JoséQuintas »

Compilando sem BAT

Código: Selecionar todos

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.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Erro compilação Minigui ultima versão 19.04

Mensagem por JoséQuintas »

Lembrando a configuração que uso aqui:

type \harbour\bin\hbmk.hbc

mt=yes
gui=yes
strip=yes
compr=yes
libpaths=d:/cdrom/fontes/integra/sefazclass
libpaths=d:/cdrom/fontes/integra/josequintas
libpaths=d:/cdrom/fontes/integra/josequintas/bostaurus
libpaths=d:/github/allgui/hmg3
libpaths=d:/github/allgui/hmge
libpaths=d:/github/allgui/hwgui
libpaths=d:/github/allgui/oohg
CFLAGS=-Wno-implicit-fallthrough -Wno-cast-function-type -Wno-misleading-indentation
PRGFLAGS=-m -n

type \GitHub\allgui\hmge\hmge.hbc

incpaths=include
libpaths=${hb_addons}/hmge/lib/${hb_plat}/${hb_comp}
libs=hmge_core
libs=hmge_calldll
libs=hmge_hbprinter
libs=hmge_miniprint
libs=hmge_propgrid
libs=hmge_propsheet
libs=hbct.hbc
libs=hbziparc.hbc
libs=msvfw32 vfw32
#libs=hmge_adordd
#libs=hmge_bostaurus
#libs=hmge_dll hmge_hbcomm hmge_hbgdip
#libs=hmge_hbodbc hmge_hbole hmge_hbpgsql
#libs=hmge_hbsqldd hmge_hbsqlite3
#libs=hmge_hbvpdf hmge_hmghpdf hmge_hbxml hmge_hbzeegrid
#libs=hmge_pscript
#libs=hmge_shell32
#libs=hmge_socket
#libs=hmge_sqlite3facade
#libs=hmge_tmsagent
gui=yes
#{hbexe}sources=resources/minigui.rc
#{hbexe}sources=resources/hbprinter.rc
#{hbexe}sources=resources/miniprint.rc

Notas:

- o hbmk.hbc avisa o Harbour aonde procurar as coisas
- o hmge.hbc tá junto com a hmge, que é o lugar certo pra indicar do que a hmge precisa
- pasta add-ons é porque desvio a criação de LIBs pra essa pasta, pra ficar junto do Harbour que foi usado pra compilar. Posso até ter na máquina versões de Harbour 3.2/3.4/XHarbour/mingw/msvc/bcc/etc. na máquina que fica tudo certo.
- Poderia também acrescentar a opção de ter versões de HMGE, como devo ter comentado antes

Simples e prático
Ninguém usa não sei porque.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Erro compilação Minigui ultima versão 19.04

Mensagem por JoséQuintas »

Aproveitar e melhorar.....
alterar esta linha:

CFLAGS=-Wno-implicit-fallthrough -Wno-cast-function-type -Wno-misleading-indentation

pra

{mingw|mingw64}CFLAGS=-Wno-implicit-fallthrough -Wno-cast-function-type -Wno-misleading-indentation

porque só no mingw 8.1 é que precisa disso, pra desprezar certas checagens na compilação, senão vai dar erro em msvc, bcc, etc.

Isso é o hbmk2, muito melhor que bat !!!!
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Responder