Página 1 de 2
ERROR HBMK2
Enviado: 03 Mar 2023 20:51
por Henry Herrera
[GOOGLE TRADUCTOR]
Estou tentando gerar um executável de console com hbmk2+Harbour+bcc58
mas ao executar o hbmk2.exe recebo o seguinte problema:
hbmk2[Controlt]: Could not detect any supported C compiler in your PATH.
Setup one or set -comp= option to one of these values: mingw,
msvc, clang, bcc, watcom, icc, pocc, xcc, tcc, mingw64,
msvc64, msvcia64, bcc64, iccia64, pocc64
eu arquivo Controlt.hbp é escrito assim:
PATH=C:\MiniGUI\Harbour;C:\MiniGUI\Harbour\lib;C:\MiniGUI\Harbour\include;C:\Borland\bcc58;C:\Borland\bcc58\Bin;C:\Borland\bcc58\include;C:\Borland\bcc58\Lib;%PATH%;
#Tipo de arquivo gerado (exe)
-hbexe
-mt
# Option adicional
-w3
-inc
-std
-debug
-b
-beep
-workdir=OBJ
-oCONTROLT
# añade una lista de bibliotecas separadas por espacios (ver más en la opción -l)
# -L rutas adicionales para buscar archivos de bibliotecas
# libpaths= C:\MiniGUI\Harbour\lib C:\Borland\bcc58\Lib
#incpaths= C:\MiniGUI\Harbour\include C:\Borland\bcc58\include
# especificaciones del compilador
set HB_COMPILER=bcc
BCCDIR= C:\Borland\bcc58
HB_COMPILER= bcc58
HBDIR= C:\MiniGUI\Harbour
.path.OBJ = .\OBJ
.path.rc = .\
#PRG Archivo Principal
X:\xHarbour\ControlT\CT\ControlTSTD\CT01.prg
X:\xHarbour\ControlT\CT\ControlTSTD\CACCEN01.prg
X:\xHarbour\ControlT\CT\ControlTSTD\CAINDICE.prg
X:\xHarbour\ControlT\CT\ControlTSTD\Caoldfun.prg
X:\xHarbour\ControlT\CT\ControlTSTD\CARAIZ01.prg
X:\xHarbour\ControlT\CT\ControlTSTD\CARAIZ02.prg
X:\xharbour\HIBRIDOS\RaizCC01.prg
X:\xharbour\HIBRIDOS\ACCESSYS.PRG
X:\xharbour\HIBRIDOS\raizComun.prg
X:\xHarbour\ControlT\CT\ControlTSTD\CTCONTRATO.PRG
# Archivo .RC
-icon= X:\xHarbour\ControlT\CT\ControlTSTD\ct02.ico
-L C:\MiniGUI\Harbour\lib
-l X:\xHarbour\MasLib\hbct.lib
Qual poderia ser o problema?
Alguém pode ajudar-me.
Muito obrigado por suas respostas
Henry Herrera
Guatemala, Guatemala
ERROR HBMK2
Enviado: 03 Mar 2023 20:55
por JoséQuintas
hbmk2[Controlt]: Could not detect any supported C compiler in your PATH.
Add bcc folder to path:
SET PATH=%PATH%;c:\borland\bcc58\bin
Check this line too:
HB_COMPILER=bcc58
Compiler is bcc
ERROR HBMK2
Enviado: 03 Mar 2023 21:17
por Henry Herrera
Já tenho essas duas linhas dentro do arquivo .hbp
Eu verifiquei novamente, mas ainda dá o mesmo problema.
Estou executando hbmk2 dentro do projeto
X:\xHarbour\ControlT\CT\ControlTSTD>C:\MiniGUI\Harbour\bin\HBMK2 Controlt
ERROR HBMK2
Enviado: 03 Mar 2023 22:06
por JoséQuintas
Henry Herrera escreveu:Já tenho essas duas linhas dentro do arquivo .hbp
HBP is not PATH
hbmk2[Controlt]: Could not detect any supported C compiler in your PATH.
Add bcc folder to path:
SET PATH=%PATH%;c:\borland\bcc58\bin
ERROR HBMK2
Enviado: 03 Mar 2023 22:09
por JoséQuintas
here I use mingw, mingw is on PATH
you use bcc, need bcc on PATH
ERROR HBMK2
Enviado: 03 Mar 2023 22:16
por JoséQuintas
To windows found EXEs: PATH
ERROR HBMK2
Enviado: 03 Mar 2023 22:31
por Henry Herrera
[GOOGLE TRADUCTOR]
Obrigado.
Se você estiver certo, você teve que definir os endereços fora do arquivo .hbp
Agora que tenho esses outros avisos, não sei como removê-los.
Warning W0003 Variable 'FNOMBREA' declared but not used in function 'RCMP03(3070)'
X:\xHarbour\ControlT\CT\ControlTSTD\FUNCION4.prg(3191) Warning W0001 Ambiguous reference 'FCOMANDO'
X:\xHarbour\ControlT\CT\ControlTSTD\FUNCION4.prg(3417) Warning W0002 Ambiguous reference, assuming memvar 'FARCHCOMPS'
Deve-se notar que o projeto funciona perfeitamente com o xharbour.
aos poucos vejo que com seu apoio vou conseguir
Obrigado pelo apoio que me deram
Henry Herrera
ERROR HBMK2
Enviado: 04 Mar 2023 06:53
por JoséQuintas
Henry Herrera escreveu:Warning W0003 Variable 'FNOMBREA' declared but not used in function 'RCMP03(3070)'
Harbour default is -w3
XHarbour default is -w0
add on hbp -w0
ERROR HBMK2
Enviado: 04 Mar 2023 21:09
por Henry Herrera
Obrigado, daqui a pouco vou ver que mudanças acontecem com essa mudança
ERROR HBMK2
Enviado: 05 Mar 2023 14:12
por JoséQuintas
Henry Herrera
I use english because I think on conflicts when translate to another language.
If you are reading this forum using translator, may be you prefer all using portuguese.
Tell us about this.
usei inglês porque pensei em conflitos quando traduz pra outra linguagem.
Se você está lendo este fórum usando tradutor, pode ser que prefira tudo usando português.
Diga-mos sobre isto
ERROR HBMK2
Enviado: 07 Mar 2023 12:24
por Henry Herrera
Hi Jose Q.
Agree with writing in English.
I had some problems, but I have solved what I had previously written.
Now the problem is the link of the Nanfor libraries
ERROR HBMK2
Enviado: 07 Mar 2023 12:38
por Henry Herrera
I have added the line to link the nanfor.lib and have solved some problems.
However, I still have these, I don't know which library I have to link.
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_PRINTEREXISTS' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_CREATEOBJECT' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTPRESGP.OBJ
Error: Unresolved external '_HB_FUN_OLE2TXTERROR' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTPRESGP.OBJ
Error: Unresolved external '_HB_FUN_TOLEAUTO' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTREPELEC.OBJ
Warning: Public symbol '_HB_FUN_ACCX' defined in both module X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CACCEN01.OBJ and X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\RAIZ01.OBJ
Warning: Public symbol '_HB_FUN_FSETMENU' defined in both module X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTTRAB01.OBJ and X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\FUNMENU.OBJ
hbmk2[ControlT]: Error: Running linker. 2
ilink32.exe @C:\Users\hherrera\AppData\Local\Temp\hlk1cy.lnk
hbmk2: Error: Referenced, missing, but unknown function(s): PRINTEREXISTS(),
GETDEFAULTPRINTER(), GETPRINTERS(), CREATEOBJECT(), OLE2TXTERROR(),
TOLEAUTO()
Could someone tell me which libraries I should link?
I thank you for your answers
Henry Herrera
Guatemala.
ERROR HBMK2
Enviado: 07 Mar 2023 13:50
por carlaoonline
Hi,
My Path for Harbout and Bcc58
Código: Selecionar todos
PATH=C:\Borland\BCC58\Bin;C:\MiniGUI\BATCH;C:\MiniGUI\Harbour\bin
My Set Lib
Código: Selecionar todos
LIB=C:\MiniGUI\Harbour\lib;C:\MiniGUI\Lib;E:\LetoDBf-master\lib
My Set Include
Código: Selecionar todos
INCLUDE=C:\MiniGUI\Harbour\include;C:\MiniGUI\Include;C:\MiniGUI\harbour\include\xlsxwriter
Código: Selecionar todos
HB_COMPILER=bcc58
HB_INSTALL_PREFIX=C:\minigui\harbour
HB_PATH=C:\minigui\harbour
HMGPATH=C:\minigui\harbour
Henry Herrera escreveu:Error: Unresolved external '_HB_FUN_PRINTEREXISTS' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
HB_FUN means that the function after HB_FUN, in this case "PRINTEREXISTS" was not found. It could be your particular function or a function that is inside a library that you forgot to include in your project with INCLUDE or in the command line.
ERROR HBMK2
Enviado: 07 Mar 2023 14:34
por Henry Herrera
Thanks add the lines you told me to my .bat file that calls the hbmk2 file
but the problem is still the same
LIB LINKS IN MY FILE :
-LC:\MiniGUI\Harbour\lib
-lhbwin
-lhbnf
-lhbct
-lhbsqldd
THIS ERROR:
hbmk2[ControlT]: Warning: Ignoring clearly specified core library directory:
C:\MiniGUI\Harbour\lib (in option '-LC:\MiniGUI\Harbour\lib'
is ControlT.hbp:135)
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external "_HB_FUN_PRINTEREXISTS" referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_CREATEOBJECT' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTPRESGP.OBJ
Error: Unresolved external "_HB_FUN_OLE2TXTERROR" referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTPRESGP.OBJ
Error: Unresolved external "_HB_FUN_TOLEAUTO" referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTREPELEC.OBJ
Warning: Public symbol '_HB_FUN_ACCX' defined in both modules X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CACCEN01.OBJ and X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\RAIZ01.OBJ
Warning: Public token '_HB_FUN_FSETMENU' defined in both modules X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTTRAB01.OBJ and X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\FUNMENU.OBJ
hbmk2[ControlT]: Error: Running linker. 2
ilink32.exe @C:\Users\hherrera\AppData\Local\Temp\cwaj31.lnk
ERROR HBMK2
Enviado: 07 Mar 2023 17:27
por JoséQuintas
Error: Unresolved external "_HB_FUN_PRINTEREXISTS" referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_CREATEOBJECT' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTPRESGP.OBJ
Error: Unresolved external "_HB_FUN_OLE2TXTERROR" referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTPRESGP.OBJ
Error: Unresolved external "_HB_FUN_TOLEAUTO" referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTREPELEC.OBJ
These functions are XHarbour compatible functions.
Add on HBP
xhb.hbc
Warning: Public symbol '_HB_FUN_ACCX' defined in both modules X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CACCEN01.OBJ and X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\RAIZ01.OBJ
Warning: Public token '_HB_FUN_FSETMENU' defined in both modules X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\CTTRAB01.OBJ and X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\FUNMENU.OBJ
May be there are duplicated files on HBP, may be harbour include sources not in hbp, automatically from source code.
Try add on HBP
-m
And only this time,
hbmk2 projeto.hbp -rebuild
As example:
You have menu.prg with lines do module1, do module2, do module3
Without -m, when adding menu.prg, harbour compilation includes module1.prg, module2.prg, module3.prg
on hbp:
menu.prg
module1.prg
module2.prg
module3.prg
module1, module2, module3 will be duplicated, because they are added by menu.prg and by hbp
When using -m, only files declared on hbp are used.