Página 3 de 7

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 13 Jan 2021 10:18
por JoséQuintas
Basicamente são duas compilações:

- a LIB
- o aplicativo

As duas tem que ser com o mesmo harbour e mesmo compilador C.

Talvez possa ser interessante apagar a pasta c:\mv\hmg.jpa\lib
Aí fica toda a lib compilada, assim elimina qualquer possível mistura anterior.

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 13 Jan 2021 10:35
por microvolution
JoséQuintas escreveu:cd \mv\hmg_jpa
hbmk2 *.hbp -rebuild
fiz, e deu o seguinte resultado na recompilação:

Código: Selecionar todos

Microsoft Windows [versão 10.0.19041.685]
(c) 2020 Microsoft Corporation. Todos os direitos reservados.

C:\Users\micro>cd\mv\hmg.jpa

C:\MV\hmg.jpa>hbmk2 *.hbp -rebuild
hbmk2: Gerando sub-projeto (passo 2): source\hmg_core.hbp
hbmk2: Acionado pelo operador de diretivas " # ": hbzebra.hbc
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_core.a
hbmk2: Gerando sub-projeto (passo 2): source\crypt\hmg_crypt.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_crypt.a
hbmk2: Gerando sub-projeto (passo 2): source\edit\hmg_edit.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_edit.a
hbmk2: Gerando sub-projeto (passo 2): source\editex\hmg_editex.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_editex.a
hbmk2: Gerando sub-projeto (passo 2): source\graph\hmg_graph.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_graph.a
hbmk2: Gerando sub-projeto (passo 2): source\ini\hmg_ini.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_ini.a
hbmk2: Gerando sub-projeto (passo 2): source\report\hmg_report.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_report.a
hbmk2: Gerando sub-projeto (passo 2): hfcl\source\hmg_hfcl.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_hfcl.a
hbmk2: Gerando sub-projeto (passo 2): source\hmg_core.hbp
hbmk2: Acionado pelo operador de diretivas " # ": hbzebra.hbc
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_core.a
hbmk2: Gerando sub-projeto (passo 2): source\crypt\hmg_crypt.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_crypt.a
hbmk2: Gerando sub-projeto (passo 2): source\edit\hmg_edit.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_edit.a
hbmk2: Gerando sub-projeto (passo 2): source\editex\hmg_editex.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_editex.a
hbmk2: Gerando sub-projeto (passo 2): source\graph\hmg_graph.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_graph.a
hbmk2: Gerando sub-projeto (passo 2): source\ini\hmg_ini.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_ini.a
hbmk2: Gerando sub-projeto (passo 2): source\report\hmg_report.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_report.a
hbmk2: Gerando sub-projeto (passo 2): hfcl\source\hmg_hfcl.hbp
hbmk2: Criando biblioteca estáticas... lib\win\mingw\libhmg_hfcl.a

C:\MVinfo\hmg.jpa>
observação: "a cada comando executado, dava-se um beep sonoro tipo MSGEXCLAMATION (o mesmo ou som semelhante)
vamos à recompilação do sistema rsrsrrs....
Ocorreram os mesmos erros...
JoséQuintas escreveu:interessante apagar a pasta c:\mv\hmg.jpa\lib
apaguei e recompilamos novamente... vamos ver os resultados da recompilação da lib?
kkkk piorou ainda mais. veja:

Código: Selecionar todos

C:\MVinfo\hmg.jpa>hbmk2 *.hbp -rebuild
hbmk2: Gerando sub-projeto (passo 2): source\hmg_core.hbp
hbmk2: Harbour: Compilando módulos...
Harbour 3.2.0dev (r2011030937)
Copyright (c) 1999-2020, https://harbour.github.io/
include\i_MsgBox.ch(20) Warning W0002  Redefinition or duplicate definition of #define MB_USERICON
include\i_MsgBox.ch(21) Warning W0002  Redefinition or duplicate definition of #define MB_ICONASTERISK
include\i_MsgBox.ch(22) Warning W0002  Redefinition or duplicate definition of #define MB_ICONEXCLAMATION
include\i_MsgBox.ch(23) Warning W0002  Redefinition or duplicate definition of #define MB_ICONWARNING
include\i_MsgBox.ch(24) Warning W0002  Redefinition or duplicate definition of #define MB_ICONERROR
include\i_MsgBox.ch(25) Warning W0002  Redefinition or duplicate definition of #define MB_ICONHAND
include\i_MsgBox.ch(26) Warning W0002  Redefinition or duplicate definition of #define MB_ICONQUESTION
include\i_MsgBox.ch(27) Warning W0002  Redefinition or duplicate definition of #define MB_OK
include\i_MsgBox.ch(28) Warning W0002  Redefinition or duplicate definition of #define MB_ABORTRETRYIGNORE
include\i_MsgBox.ch(29) Warning W0002  Redefinition or duplicate definition of #define MB_APPLMODAL
include\i_MsgBox.ch(30) Warning W0002  Redefinition or duplicate definition of #define MB_DEFAULT_DESKTOP_ONLY
include\i_MsgBox.ch(31) Warning W0002  Redefinition or duplicate definition of #define MB_HELP
include\i_MsgBox.ch(32) Warning W0002  Redefinition or duplicate definition of #define MB_RIGHT
include\i_MsgBox.ch(33) Warning W0002  Redefinition or duplicate definition of #define MB_RTLREADING
include\i_MsgBox.ch(34) Warning W0002  Redefinition or duplicate definition of #define MB_DEFBUTTON1
include\i_MsgBox.ch(35) Warning W0002  Redefinition or duplicate definition of #define MB_DEFBUTTON2
include\i_MsgBox.ch(36) Warning W0002  Redefinition or duplicate definition of #define MB_DEFBUTTON3
include\i_MsgBox.ch(37) Warning W0002  Redefinition or duplicate definition of #define MB_DEFBUTTON4
include\i_MsgBox.ch(38) Warning W0002  Redefinition or duplicate definition of #define MB_ICONINFORMATION
include\i_MsgBox.ch(39) Warning W0002  Redefinition or duplicate definition of #define MB_ICONSTOP
include\i_MsgBox.ch(40) Warning W0002  Redefinition or duplicate definition of #define MB_OKCANCEL
include\i_MsgBox.ch(41) Warning W0002  Redefinition or duplicate definition of #define MB_RETRYCANCEL
include\i_MsgBox.ch(42) Warning W0002  Redefinition or duplicate definition of #define MB_SETFOREGROUND
include\i_MsgBox.ch(43) Warning W0002  Redefinition or duplicate definition of #define MB_SYSTEMMODAL
include\i_MsgBox.ch(44) Warning W0002  Redefinition or duplicate definition of #define MB_TASKMODAL
include\i_MsgBox.ch(45) Warning W0002  Redefinition or duplicate definition of #define MB_YESNO
include\i_MsgBox.ch(46) Warning W0002  Redefinition or duplicate definition of #define MB_YESNOCANCEL
include\i_MsgBox.ch(47) Warning W0002  Redefinition or duplicate definition of #define MB_ICONMASK
include\i_MsgBox.ch(48) Warning W0002  Redefinition or duplicate definition of #define MB_DEFMASK
include\i_MsgBox.ch(49) Warning W0002  Redefinition or duplicate definition of #define MB_MODEMASK
include\i_MsgBox.ch(50) Warning W0002  Redefinition or duplicate definition of #define MB_MISCMASK
include\i_MsgBox.ch(51) Warning W0002  Redefinition or duplicate definition of #define MB_NOFOCUS
include\i_MsgBox.ch(52) Warning W0002  Redefinition or duplicate definition of #define MB_TYPEMASK
include\i_MsgBox.ch(53) Warning W0002  Redefinition or duplicate definition of #define MB_TOPMOST
include\i_MsgBox.ch(54) Warning W0002  Redefinition or duplicate definition of #define MB_CANCELTRYCONTINUE
include\i_MsgBox.ch(59) Warning W0002  Redefinition or duplicate definition of #define IDOK
include\i_MsgBox.ch(60) Warning W0002  Redefinition or duplicate definition of #define IDCANCEL
include\i_MsgBox.ch(61) Warning W0002  Redefinition or duplicate definition of #define IDABORT
include\i_MsgBox.ch(62) Warning W0002  Redefinition or duplicate definition of #define IDRETRY
include\i_MsgBox.ch(63) Warning W0002  Redefinition or duplicate definition of #define IDIGNORE
include\i_MsgBox.ch(64) Warning W0002  Redefinition or duplicate definition of #define IDYES
include\i_MsgBox.ch(65) Warning W0002  Redefinition or duplicate definition of #define IDNO
include\i_MsgBox.ch(68) Warning W0002  Redefinition or duplicate definition of #define IDTRYAGAIN
include\i_MsgBox.ch(69) Warning W0002  Redefinition or duplicate definition of #define IDCONTINUE
include\i_Dialogs.ch(105) Warning W0002  Redefinition or duplicate definition of #define WM_SYSCOMMAND
include\i_Dialogs.ch(106) Warning W0002  Redefinition or duplicate definition of #define SC_CLOSE
include\i_window.ch(847) Warning W0002  Redefinition or duplicate definition of #define SW_HIDE
include\i_window.ch(848) Warning W0002  Redefinition or duplicate definition of #define SW_NORMAL
include\i_window.ch(849) Warning W0002  Redefinition or duplicate definition of #define SW_SHOWNORMAL
include\i_window.ch(850) Warning W0002  Redefinition or duplicate definition of #define SW_SHOWMINIMIZED
include\i_window.ch(851) Warning W0002  Redefinition or duplicate definition of #define SW_MAXIMIZE
include\i_window.ch(852) Warning W0002  Redefinition or duplicate definition of #define SW_SHOWMAXIMIZED
include\i_window.ch(853) Warning W0002  Redefinition or duplicate definition of #define SW_SHOWNOACTIVATE
include\i_window.ch(854) Warning W0002  Redefinition or duplicate definition of #define SW_SHOW
include\i_window.ch(855) Warning W0002  Redefinition or duplicate definition of #define SW_MINIMIZE
include\i_window.ch(856) Warning W0002  Redefinition or duplicate definition of #define SW_SHOWMINNOACTIVE
include\i_window.ch(857) Warning W0002  Redefinition or duplicate definition of #define SW_SHOWNA
include\i_window.ch(858) Warning W0002  Redefinition or duplicate definition of #define SW_RESTORE
include\i_window.ch(859) Warning W0002  Redefinition or duplicate definition of #define SW_SHOWDEFAULT
include\i_window.ch(860) Warning W0002  Redefinition or duplicate definition of #define SW_FORCEMINIMIZE
include\i_window.ch(861) Warning W0002  Redefinition or duplicate definition of #define SW_MAX
include\i_window.ch(865) Warning W0002  Redefinition or duplicate definition of #define WS_BORDER
include\i_window.ch(866) Warning W0002  Redefinition or duplicate definition of #define WS_CAPTION
include\i_window.ch(867) Warning W0002  Redefinition or duplicate definition of #define WS_CHILD
include\i_window.ch(869) Warning W0002  Redefinition or duplicate definition of #define WS_CLIPCHILDREN
include\i_window.ch(870) Warning W0002  Redefinition or duplicate definition of #define WS_CLIPSIBLINGS
include\i_window.ch(871) Warning W0002  Redefinition or duplicate definition of #define WS_DISABLED
include\i_window.ch(872) Warning W0002  Redefinition or duplicate definition of #define WS_DLGFRAME
include\i_window.ch(873) Warning W0002  Redefinition or duplicate definition of #define WS_GROUP
include\i_window.ch(874) Warning W0002  Redefinition or duplicate definition of #define WS_HSCROLL
include\i_window.ch(875) Warning W0002  Redefinition or duplicate definition of #define WS_ICONIC
include\i_window.ch(876) Warning W0002  Redefinition or duplicate definition of #define WS_MAXIMIZE
include\i_window.ch(877) Warning W0002  Redefinition or duplicate definition of #define WS_MAXIMIZEBOX
include\i_window.ch(878) Warning W0002  Redefinition or duplicate definition of #define WS_MINIMIZE
include\i_window.ch(879) Warning W0002  Redefinition or duplicate definition of #define WS_MINIMIZEBOX
include\i_window.ch(880) Warning W0002  Redefinition or duplicate definition of #define WS_OVERLAPPED
include\i_window.ch(881) Warning W0002  Redefinition or duplicate definition of #define WS_OVERLAPPEDWINDOW
include\i_window.ch(882) Warning W0002  Redefinition or duplicate definition of #define WS_POPUP
include\i_window.ch(884) Warning W0002  Redefinition or duplicate definition of #define WS_SIZEBOX
include\i_window.ch(885) Warning W0002  Redefinition or duplicate definition of #define WS_SYSMENU
include\i_window.ch(886) Warning W0002  Redefinition or duplicate definition of #define WS_TABSTOP
include\i_window.ch(887) Warning W0002  Redefinition or duplicate definition of #define WS_THICKFRAME
include\i_window.ch(888) Warning W0002  Redefinition or duplicate definition of #define WS_TILED
include\i_window.ch(889) Warning W0002  Redefinition or duplicate definition of #define WS_TILEDWINDOW
include\i_window.ch(890) Warning W0002  Redefinition or duplicate definition of #define WS_VISIBLE
include\i_window.ch(891) Warning W0002  Redefinition or duplicate definition of #define WS_VSCROLL
include\i_window.ch(895) Warning W0002  Redefinition or duplicate definition of #define WS_EX_ACCEPTFILES
include\i_window.ch(896) Warning W0002  Redefinition or duplicate definition of #define WS_EX_APPWINDOW
include\i_window.ch(897) Warning W0002  Redefinition or duplicate definition of #define WS_EX_CLIENTEDGE
include\i_window.ch(899) Warning W0002  Redefinition or duplicate definition of #define WS_EX_CONTEXTHELP
include\i_window.ch(900) Warning W0002  Redefinition or duplicate definition of #define WS_EX_CONTROLPARENT
include\i_window.ch(901) Warning W0002  Redefinition or duplicate definition of #define WS_EX_DLGMODALFRAME
include\i_window.ch(902) Warning W0002  Redefinition or duplicate definition of #define WS_EX_LAYERED
include\i_window.ch(903) Warning W0002  Redefinition or duplicate definition of #define WS_EX_LAYOUTRTL
include\i_window.ch(904) Warning W0002  Redefinition or duplicate definition of #define WS_EX_LEFT
include\i_window.ch(905) Warning W0002  Redefinition or duplicate definition of #define WS_EX_LEFTSCROLLBAR
include\i_window.ch(906) Warning W0002  Redefinition or duplicate definition of #define WS_EX_LTRREADING
include\i_window.ch(907) Warning W0002  Redefinition or duplicate definition of #define WS_EX_MDICHILD
include\i_window.ch(908) Warning W0002  Redefinition or duplicate definition of #define WS_EX_NOACTIVATE
include\i_window.ch(909) Warning W0002  Redefinition or duplicate definition of #define WS_EX_NOINHERITLAYOUT
include\i_window.ch(910) Warning W0002  Redefinition or duplicate definition of #define WS_EX_NOPARENTNOTIFY
include\i_window.ch(911) Warning W0002  Redefinition or duplicate definition of #define WS_EX_OVERLAPPEDWINDOW
include\i_window.ch(912) Warning W0002  Redefinition or duplicate definition of #define WS_EX_PALETTEWINDOW
include\i_window.ch(913) Warning W0002  Redefinition or duplicate definition of #define WS_EX_RIGHT
include\i_window.ch(914) Warning W0002  Redefinition or duplicate definition of #define WS_EX_RIGHTSCROLLBAR
include\i_window.ch(915) Warning W0002  Redefinition or duplicate definition of #define WS_EX_RTLREADING
include\i_window.ch(916) Warning W0002  Redefinition or duplicate definition of #define WS_EX_STATICEDGE
include\i_window.ch(917) Warning W0002  Redefinition or duplicate definition of #define WS_EX_TOOLWINDOW
include\i_window.ch(918) Warning W0002  Redefinition or duplicate definition of #define WS_EX_TOPMOST
include\i_window.ch(919) Warning W0002  Redefinition or duplicate definition of #define WS_EX_TRANSPARENT
include\i_window.ch(920) Warning W0002  Redefinition or duplicate definition of #define WS_EX_WINDOWEDGE
include\i_window.ch(925) Warning W0002  Redefinition or duplicate definition of #define SWP_FRAMECHANGED
include\i_window.ch(926) Warning W0002  Redefinition or duplicate definition of #define SWP_HIDEWINDOW
include\i_window.ch(927) Warning W0002  Redefinition or duplicate definition of #define SWP_NOACTIVATE
include\i_window.ch(928) Warning W0002  Redefinition or duplicate definition of #define SWP_NOCOPYBITS
include\i_window.ch(929) Warning W0002  Redefinition or duplicate definition of #define SWP_NOMOVE
include\i_window.ch(930) Warning W0002  Redefinition or duplicate definition of #define SWP_NOSIZE
include\i_window.ch(931) Warning W0002  Redefinition or duplicate definition of #define SWP_NOREDRAW
include\i_window.ch(932) Warning W0002  Redefinition or duplicate definition of #define SWP_NOZORDER
include\i_window.ch(933) Warning W0002  Redefinition or duplicate definition of #define SWP_SHOWWINDOW
include\i_window.ch(934) Warning W0002  Redefinition or duplicate definition of #define SWP_NOOWNERZORDER
include\i_window.ch(936) Warning W0002  Redefinition or duplicate definition of #define SWP_NOSENDCHANGING
include\i_window.ch(966) Warning W0002  Redefinition or duplicate definition of #define GWL_STYLE
include\i_window.ch(967) Warning W0002  Redefinition or duplicate definition of #define GWL_EXSTYLE
include\i_keybd.ch(243) Warning W0002  Redefinition or duplicate definition of #define WM_CHAR
include\i_keybd.ch(244) Warning W0002  Redefinition or duplicate definition of #define WM_DEADCHAR
include\i_keybd.ch(245) Warning W0002  Redefinition or duplicate definition of #define WM_KEYDOWN
include\i_keybd.ch(246) Warning W0002  Redefinition or duplicate definition of #define WM_KEYUP
include\i_keybd.ch(247) Warning W0002  Redefinition or duplicate definition of #define WM_SYSCHAR
include\i_keybd.ch(248) Warning W0002  Redefinition or duplicate definition of #define WM_SYSDEADCHAR
include\i_keybd.ch(249) Warning W0002  Redefinition or duplicate definition of #define WM_SYSKEYDOWN
include\i_keybd.ch(250) Warning W0002  Redefinition or duplicate definition of #define WM_SYSKEYUP
include\i_keybd.ch(252) Warning W0002  Redefinition or duplicate definition of #define WM_KEYFIRST
include\i_keybd.ch(253) Warning W0002  Redefinition or duplicate definition of #define WM_KEYLAST
include\i_keybd.ch(256) Warning W0002  Redefinition or duplicate definition of #define WM_HOTKEY
include\i_keybd.ch(259) Warning W0002  Redefinition or duplicate definition of #define VK_LBUTTON
include\i_keybd.ch(260) Warning W0002  Redefinition or duplicate definition of #define VK_RBUTTON
include\i_keybd.ch(261) Warning W0002  Redefinition or duplicate definition of #define VK_CANCEL
include\i_keybd.ch(262) Warning W0002  Redefinition or duplicate definition of #define VK_MBUTTON
include\i_keybd.ch(265) Warning W0002  Redefinition or duplicate definition of #define VK_BACK
include\i_keybd.ch(266) Warning W0002  Redefinition or duplicate definition of #define VK_TAB
include\i_keybd.ch(267) Warning W0002  Redefinition or duplicate definition of #define VK_CLEAR
include\i_keybd.ch(268) Warning W0002  Redefinition or duplicate definition of #define VK_RETURN
include\i_keybd.ch(269) Warning W0002  Redefinition or duplicate definition of #define VK_SHIFT
include\i_keybd.ch(270) Warning W0002  Redefinition or duplicate definition of #define VK_CONTROL
include\i_keybd.ch(271) Warning W0002  Redefinition or duplicate definition of #define VK_MENU
include\i_keybd.ch(272) Warning W0002  Redefinition or duplicate definition of #define VK_PAUSE
include\i_keybd.ch(273) Warning W0002  Redefinition or duplicate definition of #define VK_CAPITAL
include\i_keybd.ch(281) Warning W0002  Redefinition or duplicate definition of #define VK_ESCAPE
include\i_keybd.ch(286) Warning W0002  Redefinition or duplicate definition of #define VK_SPACE
include\i_keybd.ch(287) Warning W0002  Redefinition or duplicate definition of #define VK_PRIOR
include\i_keybd.ch(288) Warning W0002  Redefinition or duplicate definition of #define VK_NEXT
include\i_keybd.ch(289) Warning W0002  Redefinition or duplicate definition of #define VK_END
include\i_keybd.ch(290) Warning W0002  Redefinition or duplicate definition of #define VK_HOME
include\i_keybd.ch(291) Warning W0002  Redefinition or duplicate definition of #define VK_LEFT
include\i_keybd.ch(292) Warning W0002  Redefinition or duplicate definition of #define VK_UP
include\i_keybd.ch(293) Warning W0002  Redefinition or duplicate definition of #define VK_RIGHT
include\i_keybd.ch(294) Warning W0002  Redefinition or duplicate definition of #define VK_DOWN
include\i_keybd.ch(295) Warning W0002  Redefinition or duplicate definition of #define VK_SELECT
include\i_keybd.ch(296) Warning W0002  Redefinition or duplicate definition of #define VK_PRINT
include\i_keybd.ch(297) Warning W0002  Redefinition or duplicate definition of #define VK_EXECUTE
include\i_keybd.ch(298) Warning W0002  Redefinition or duplicate definition of #define VK_SNAPSHOT
include\i_keybd.ch(299) Warning W0002  Redefinition or duplicate definition of #define VK_INSERT
include\i_keybd.ch(300) Warning W0002  Redefinition or duplicate definition of #define VK_DELETE
include\i_keybd.ch(301) Warning W0002  Redefinition or duplicate definition of #define VK_HELP
include\i_keybd.ch(306) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD0
include\i_keybd.ch(307) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD1
include\i_keybd.ch(308) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD2
include\i_keybd.ch(309) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD3
include\i_keybd.ch(310) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD4
include\i_keybd.ch(311) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD5
include\i_keybd.ch(312) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD6
include\i_keybd.ch(313) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD7
include\i_keybd.ch(314) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD8
include\i_keybd.ch(315) Warning W0002  Redefinition or duplicate definition of #define VK_NUMPAD9
include\i_keybd.ch(316) Warning W0002  Redefinition or duplicate definition of #define VK_MULTIPLY
include\i_keybd.ch(317) Warning W0002  Redefinition or duplicate definition of #define VK_ADD
include\i_keybd.ch(318) Warning W0002  Redefinition or duplicate definition of #define VK_SEPARATOR
include\i_keybd.ch(319) Warning W0002  Redefinition or duplicate definition of #define VK_SUBTRACT
include\i_keybd.ch(320) Warning W0002  Redefinition or duplicate definition of #define VK_DECIMAL
include\i_keybd.ch(321) Warning W0002  Redefinition or duplicate definition of #define VK_DIVIDE
include\i_keybd.ch(322) Warning W0002  Redefinition or duplicate definition of #define VK_F1
include\i_keybd.ch(323) Warning W0002  Redefinition or duplicate definition of #define VK_F2
include\i_keybd.ch(324) Warning W0002  Redefinition or duplicate definition of #define VK_F3
include\i_keybd.ch(325) Warning W0002  Redefinition or duplicate definition of #define VK_F4
include\i_keybd.ch(326) Warning W0002  Redefinition or duplicate definition of #define VK_F5
include\i_keybd.ch(327) Warning W0002  Redefinition or duplicate definition of #define VK_F6
include\i_keybd.ch(328) Warning W0002  Redefinition or duplicate definition of #define VK_F7
include\i_keybd.ch(329) Warning W0002  Redefinition or duplicate definition of #define VK_F8
include\i_keybd.ch(330) Warning W0002  Redefinition or duplicate definition of #define VK_F9
include\i_keybd.ch(331) Warning W0002  Redefinition or duplicate definition of #define VK_F10
include\i_keybd.ch(332) Warning W0002  Redefinition or duplicate definition of #define VK_F11
include\i_keybd.ch(333) Warning W0002  Redefinition or duplicate definition of #define VK_F12
include\i_keybd.ch(334) Warning W0002  Redefinition or duplicate definition of #define VK_F13
include\i_keybd.ch(335) Warning W0002  Redefinition or duplicate definition of #define VK_F14
include\i_keybd.ch(336) Warning W0002  Redefinition or duplicate definition of #define VK_F15
include\i_keybd.ch(337) Warning W0002  Redefinition or duplicate definition of #define VK_F16
include\i_keybd.ch(338) Warning W0002  Redefinition or duplicate definition of #define VK_F17
include\i_keybd.ch(339) Warning W0002  Redefinition or duplicate definition of #define VK_F18
include\i_keybd.ch(340) Warning W0002  Redefinition or duplicate definition of #define VK_F19
include\i_keybd.ch(341) Warning W0002  Redefinition or duplicate definition of #define VK_F20
include\i_keybd.ch(342) Warning W0002  Redefinition or duplicate definition of #define VK_F21
include\i_keybd.ch(343) Warning W0002  Redefinition or duplicate definition of #define VK_F22
include\i_keybd.ch(344) Warning W0002  Redefinition or duplicate definition of #define VK_F23
include\i_keybd.ch(345) Warning W0002  Redefinition or duplicate definition of #define VK_F24
include\i_keybd.ch(346) Warning W0002  Redefinition or duplicate definition of #define VK_NUMLOCK
include\i_keybd.ch(347) Warning W0002  Redefinition or duplicate definition of #define VK_SCROLL
include\i_keybd.ch(424) Warning W0002  Redefinition or duplicate definition of #define WH_MIN
include\i_keybd.ch(425) Warning W0002  Redefinition or duplicate definition of #define WH_MAX
include\i_keybd.ch(428) Warning W0002  Redefinition or duplicate definition of #define WH_MSGFILTER
include\i_keybd.ch(429) Warning W0002  Redefinition or duplicate definition of #define WH_CALLWNDPROC
include\i_menu.ch(197) Warning W0002  Redefinition or duplicate definition of #define WM_MENUCOMMAND
include\i_menu.ch(201) Warning W0002  Redefinition or duplicate definition of #define WM_MENUSELECT
include\i_menu.ch(202) Warning W0002  Redefinition or duplicate definition of #define WM_NEXTMENU
include\i_controlmisc.ch(57) Warning W0002  Redefinition or duplicate definition of #define IDC_ARROW
include\i_controlmisc.ch(58) Warning W0002  Redefinition or duplicate definition of #define IDC_IBEAM
include\i_controlmisc.ch(59) Warning W0002  Redefinition or duplicate definition of #define IDC_WAIT
include\i_controlmisc.ch(60) Warning W0002  Redefinition or duplicate definition of #define IDC_CROSS
include\i_controlmisc.ch(61) Warning W0002  Redefinition or duplicate definition of #define IDC_UPARROW
include\i_controlmisc.ch(62) Warning W0002  Redefinition or duplicate definition of #define IDC_SIZENWSE
include\i_controlmisc.ch(63) Warning W0002  Redefinition or duplicate definition of #define IDC_SIZENESW
include\i_controlmisc.ch(64) Warning W0002  Redefinition or duplicate definition of #define IDC_SIZEWE
include\i_controlmisc.ch(65) Warning W0002  Redefinition or duplicate definition of #define IDC_SIZENS
include\i_controlmisc.ch(66) Warning W0002  Redefinition or duplicate definition of #define IDC_SIZEALL
include\i_controlmisc.ch(67) Warning W0002  Redefinition or duplicate definition of #define IDC_NO
include\i_controlmisc.ch(68) Warning W0002  Redefinition or duplicate definition of #define IDC_HAND
include\i_controlmisc.ch(69) Warning W0002  Redefinition or duplicate definition of #define IDC_APPSTARTING
include\i_controlmisc.ch(70) Warning W0002  Redefinition or duplicate definition of #define IDC_HELP
include\i_controlmisc.ch(217) Warning W0002  Redefinition or duplicate definition of #define DEFAULT_CHARSET
include\i_controlmisc.ch(218) Warning W0002  Redefinition or duplicate definition of #define ANSI_CHARSET
include\i_controlmisc.ch(219) Warning W0002  Redefinition or duplicate definition of #define SYMBOL_CHARSET
include\i_controlmisc.ch(220) Warning W0002  Redefinition or duplicate definition of #define SHIFTJIS_CHARSET
include\i_controlmisc.ch(221) Warning W0002  Redefinition or duplicate definition of #define HANGEUL_CHARSET
include\i_controlmisc.ch(222) Warning W0002  Redefinition or duplicate definition of #define HANGUL_CHARSET
include\i_controlmisc.ch(223) Warning W0002  Redefinition or duplicate definition of #define GB2312_CHARSET
include\i_controlmisc.ch(224) Warning W0002  Redefinition or duplicate definition of #define CHINESEBIG5_CHARSET
include\i_controlmisc.ch(225) Warning W0002  Redefinition or duplicate definition of #define GREEK_CHARSET
include\i_controlmisc.ch(226) Warning W0002  Redefinition or duplicate definition of #define TURKISH_CHARSET
include\i_controlmisc.ch(227) Warning W0002  Redefinition or duplicate definition of #define HEBREW_CHARSET
include\i_controlmisc.ch(228) Warning W0002  Redefinition or duplicate definition of #define ARABIC_CHARSET
include\i_controlmisc.ch(229) Warning W0002  Redefinition or duplicate definition of #define BALTIC_CHARSET
include\i_controlmisc.ch(230) Warning W0002  Redefinition or duplicate definition of #define RUSSIAN_CHARSET
include\i_controlmisc.ch(231) Warning W0002  Redefinition or duplicate definition of #define THAI_CHARSET
include\i_controlmisc.ch(232) Warning W0002  Redefinition or duplicate definition of #define EASTEUROPE_CHARSET
include\i_controlmisc.ch(233) Warning W0002  Redefinition or duplicate definition of #define OEM_CHARSET
include\i_controlmisc.ch(234) Warning W0002  Redefinition or duplicate definition of #define JOHAB_CHARSET
include\i_controlmisc.ch(235) Warning W0002  Redefinition or duplicate definition of #define VIETNAMESE_CHARSET
include\i_controlmisc.ch(236) Warning W0002  Redefinition or duplicate definition of #define MAC_CHARSET
include\i_controlmisc.ch(287) Warning W0002  Redefinition or duplicate definition of #define WM_MOUSEACTIVATE
include\i_controlmisc.ch(288) Warning W0002  Redefinition or duplicate definition of #define WM_MOUSEMOVE
include\i_controlmisc.ch(289) Warning W0002  Redefinition or duplicate definition of #define WM_LBUTTONDOWN
include\i_controlmisc.ch(290) Warning W0002  Redefinition or duplicate definition of #define WM_LBUTTONUP
include\i_controlmisc.ch(291) Warning W0002  Redefinition or duplicate definition of #define WM_LBUTTONDBLCLK
include\i_controlmisc.ch(292) Warning W0002  Redefinition or duplicate definition of #define WM_RBUTTONDOWN
include\i_controlmisc.ch(293) Warning W0002  Redefinition or duplicate definition of #define WM_RBUTTONUP
include\i_controlmisc.ch(294) Warning W0002  Redefinition or duplicate definition of #define WM_RBUTTONDBLCLK
include\i_controlmisc.ch(295) Warning W0002  Redefinition or duplicate definition of #define WM_MBUTTONDOWN
include\i_controlmisc.ch(296) Warning W0002  Redefinition or duplicate definition of #define WM_MBUTTONUP
include\i_controlmisc.ch(297) Warning W0002  Redefinition or duplicate definition of #define WM_MBUTTONDBLCLK
include\i_controlmisc.ch(298) Warning W0002  Redefinition or duplicate definition of #define WM_MOUSEWHEEL
include\i_controlmisc.ch(299) Warning W0002  Redefinition or duplicate definition of #define WM_MOUSEFIRST
include\i_controlmisc.ch(300) Warning W0002  Redefinition or duplicate definition of #define WM_XBUTTONDOWN
include\i_controlmisc.ch(301) Warning W0002  Redefinition or duplicate definition of #define WM_XBUTTONUP
include\i_controlmisc.ch(302) Warning W0002  Redefinition or duplicate definition of #define WM_XBUTTONDBLCLK
include\i_controlmisc.ch(303) Warning W0002  Redefinition or duplicate definition of #define WM_MOUSEHOVER
include\i_controlmisc.ch(304) Warning W0002  Redefinition or duplicate definition of #define WM_MOUSELEAVE
include\i_controlmisc.ch(306) Warning W0002  Redefinition or duplicate definition of #define WM_NCHITTEST
include\i_controlmisc.ch(307) Warning W0002  Redefinition or duplicate definition of #define WM_NCLBUTTONDBLCLK
include\i_controlmisc.ch(308) Warning W0002  Redefinition or duplicate definition of #define WM_NCLBUTTONDOWN
include\i_controlmisc.ch(309) Warning W0002  Redefinition or duplicate definition of #define WM_NCLBUTTONUP
include\i_controlmisc.ch(310) Warning W0002  Redefinition or duplicate definition of #define WM_NCMBUTTONDBLCLK
include\i_controlmisc.ch(311) Warning W0002  Redefinition or duplicate definition of #define WM_NCMBUTTONDOWN
include\i_controlmisc.ch(312) Warning W0002  Redefinition or duplicate definition of #define WM_NCMBUTTONUP
include\i_controlmisc.ch(318) Warning W0002  Redefinition or duplicate definition of #define WM_NCMOUSEMOVE
include\i_controlmisc.ch(319) Warning W0002  Redefinition or duplicate definition of #define WM_NCRBUTTONDBLCLK
include\i_controlmisc.ch(320) Warning W0002  Redefinition or duplicate definition of #define WM_NCRBUTTONDOWN
include\i_controlmisc.ch(321) Warning W0002  Redefinition or duplicate definition of #define WM_NCRBUTTONUP
include\i_controlmisc.ch(323) Warning W0002  Redefinition or duplicate definition of #define WM_CAPTURECHANGED
include\i_controlmisc.ch(331) Warning W0002  Redefinition or duplicate definition of #define NM_FIRST
include\i_controlmisc.ch(332) Warning W0002  Redefinition or duplicate definition of #define NM_CUSTOMDRAW
include\i_controlmisc.ch(333) Warning W0002  Redefinition or duplicate definition of #define WM_NOTIFY
include\i_controlmisc.ch(336) Warning W0002  Redefinition or duplicate definition of #define WM_PAINT
include\i_controlmisc.ch(337) Warning W0002  Redefinition or duplicate definition of #define WM_NCPAINT
include\i_controlmisc.ch(338) Warning W0002  Redefinition or duplicate definition of #define WM_PAINTICON
include\i_controlmisc.ch(341) Warning W0002  Redefinition or duplicate definition of #define WM_DRAWITEM
include\i_controlmisc.ch(342) Warning W0002  Redefinition or duplicate definition of #define WM_ERASEBKGND
include\i_controlmisc.ch(343) Warning W0002  Redefinition or duplicate definition of #define WM_ICONERASEBKGND
include\i_controlmisc.ch(349) Warning W0002  Redefinition or duplicate definition of #define WM_SETFONT
include\i_controlmisc.ch(350) Warning W0002  Redefinition or duplicate definition of #define WM_GETFONT
include\i_controlmisc.ch(385) Warning W0002  Redefinition or duplicate definition of #define TTS_BALLOON
include\i_tree.ch(245) Warning W0002  Redefinition or duplicate definition of #define TVSIL_NORMAL
include\i_tree.ch(246) Warning W0002  Redefinition or duplicate definition of #define TVSIL_STATE
include\i_tree.ch(250) Warning W0002  Redefinition or duplicate definition of #define TVS_HASBUTTONS
include\i_tree.ch(251) Warning W0002  Redefinition or duplicate definition of #define TVS_HASLINES
include\i_tree.ch(252) Warning W0002  Redefinition or duplicate definition of #define TVS_LINESATROOT
include\i_tree.ch(253) Warning W0002  Redefinition or duplicate definition of #define TVS_EDITLABELS
include\i_tree.ch(254) Warning W0002  Redefinition or duplicate definition of #define TVS_DISABLEDRAGDROP
include\i_tree.ch(255) Warning W0002  Redefinition or duplicate definition of #define TVS_SHOWSELALWAYS
include\i_tree.ch(256) Warning W0002  Redefinition or duplicate definition of #define TVS_RTLREADING
include\i_tree.ch(257) Warning W0002  Redefinition or duplicate definition of #define TVS_NOTOOLTIPS
include\i_tree.ch(258) Warning W0002  Redefinition or duplicate definition of #define TVS_CHECKBOXES
include\i_tree.ch(259) Warning W0002  Redefinition or duplicate definition of #define TVS_TRACKSELECT
include\i_tree.ch(260) Warning W0002  Redefinition or duplicate definition of #define TVS_SINGLEEXPAND
include\i_tree.ch(261) Warning W0002  Redefinition or duplicate definition of #define TVS_INFOTIP
include\i_tree.ch(262) Warning W0002  Redefinition or duplicate definition of #define TVS_FULLROWSELECT
include\i_tree.ch(263) Warning W0002  Redefinition or duplicate definition of #define TVS_NOSCROLL
include\i_tree.ch(264) Warning W0002  Redefinition or duplicate definition of #define TVS_NONEVENHEIGHT
include\i_tree.ch(265) Warning W0002  Redefinition or duplicate definition of #define TVS_NOHSCROLL
source\debugger\dbgGUI.prg(52) Warning W0002  Redefinition or duplicate definition of #define SM_CXVSCROLL
source\debugger\dbgGUI.prg(53) Warning W0002  Redefinition or duplicate definition of #define SM_CYHSCROLL
source\debugger\dbgGUI.prg(98) Warning W0002  Redefinition or duplicate definition of #define SB_HORZ
source\debugger\dbgGUI.prg(99) Warning W0002  Redefinition or duplicate definition of #define SB_VERT
source\debugger\dbgGUI.prg(1450) Error E0030  Syntax error "syntax error at 'WINDOW'"
source\debugger\dbgGUI.prg(1459) Error E0030  Syntax error "syntax error at 'WINDOW'"
source\debugger\dbgGUI.prg(1468) Warning W0002  Redefinition or duplicate definition of #define HWND_NOTOPMOST
source\debugger\dbgGUI.prg(1469) Warning W0002  Redefinition or duplicate definition of #define HWND_TOPMOST
source\debugger\dbgGUI.prg(1470) Warning W0002  Redefinition or duplicate definition of #define HWND_TOP
source\debugger\dbgGUI.prg(1471) Warning W0002  Redefinition or duplicate definition of #define HWND_BOTTOM
2 errors

No code generated.
hbmk2[hmg_core]: Error: Running Harbour compiler (built-in). 1
(C:\MVinfo\hmg.3.5\HARBOUR\bin\harbour.exe) -n1 source\debugger\dbgGUI.prg source\BosTaurus\h_BosTaurus.prg source\class\HMG_TString.prg source\h_UNICODE.prg source\h_UNICODE_STRING.prg source\h_EventCB.prg source\h_GridEx.prg source\h_TimePicker.prg source\h_HMG_HPDF.prg source\h_HMG_HPDF_UNICODE.prg source\h_HMG_Zebra.prg source\h_GraphBitmap.prg source\ErrorSys.prg source\h_browse.prg source\h_button.prg source\h_checkbox.prg source\h_combo.prg source\h_controlmisc.prg source\h_datepicker.prg source\h_dialogs.prg source\h_editbox.prg source\h_error.prg source\h_font.prg source\h_frame.prg source\h_grid.prg source\h_help.prg source\h_hotkey.prg source\h_image.prg source\h_init.prg source\h_ipaddress.prg source\h_label.prg source\h_listbox.prg source\h_media.prg source\h_menu.prg source\h_monthcal.prg source\h_msgbox.prg source\h_progressbar.prg source\h_radio.prg source\h_richeditbox.prg source\h_rptgen.prg source\h_slider.prg source\h_spinner.prg source\h_status.prg source\h_tab.prg source\h_textbox.prg source\h_timer.prg source\h_tole.prg source\h_toolbar.prg source\h_tree.prg source\h_winapimisc.prg source\h_windows.prg -q -DHBMK_HAS_HBCT=1 -DHBMK_HAS_HBWIN=1 -DHBMK_HAS_MINIZIP=1 -DHBMK_HAS_HBMZIP=1 -DHBMK_HAS_HBMISC=1 -DHBMK_HAS_HBTIP=1 -DHBMK_HAS_LIBHPDF=1 -DHBMK_HAS_HBHPDF=1 -DHBMK_HAS_HBZEBRA=1 -DHBMK_HAS_HBFSHIP=1 -DHBMK_HAS_HBXPP=1 -DHBMK_HAS_XHB=1 -DHBMK_HAS_GTWVG=1 -DHBMK_HAS_HBNF=1 -DHBMK_HAS_HMG=1 -D__HBIDE__ -w2 -es2 -olib\win\mingw\.hbmk\win\mingw\ -ic:\mvinfo\hmg.3.5\harbour\include -iinclude -iC:\MVinfo\hmg.jpa -ic:\mv\hmg.3.5\harbour\contrib\hbct -ic:\mvinfo\hmg.3.5\harbour\contrib\hbwin -ic:\mvinfo\hmg.3.5\harbour\contrib\hbmzip -ic:\mv\hmg.3.5\harbour\contrib\hbtip -ic:\mvinfo\hmg.3.5\harbour\contrib\hbhpdf -ic:\mvinfo\hmg.3.5\harbour\contrib\hbzebra -ic:\mv\hmg.3.5\harbour\contrib\xhb -ic:\mvinfo\hmg.3.5\harbour\contrib\hbfship -ic:\mvinfo\hmg.3.5\harbour\contrib\hbxpp -ic:\mv\hmg.3.5\harbour\contrib\gtwvg -ic:\mvinfo\hmg.3.5\harbour\contrib\hbnf -u+c:\mvinfo\hmg.3.5\harbour\contrib\hbwin\hbwin.ch -u+c:\mv\hmg.3.5\harbour\contrib\hbmzip\hbmzip.ch -u+c:\mvinfo\hmg.3.5\harbour\contrib\hbhpdf\harupdf.ch -u+c:\mv\hmg.3.5\harbour\contrib\hbzebra\hbzebra.ch -u+c:\mvinfo\hmg.3.5\harbour\contrib\gtwvg\hbgtwvg.ch -u+c:\mv\hmg.3.5\harbour\contrib\gtwvg\wvgparts.ch -u+c:\mvinfo\hmg.3.5\harbour\contrib\gtwvg\wvtwin.ch

C:\MVinfo\hmg.jpa>
E, agora José? kkkk

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 13 Jan 2021 11:49
por JoséQuintas
Ok, acrescente na compilação da LIB -w0 (zero)

Tudo isso duplicado existe mesmo, é tudo original.

hbmk2 *.hbp -w0 -rebuild

Nota: Nessa brincadeira de criar o build, talvez eu tenha salvo com parâmetros de teste, apesar que.... tá gerando tudo lá sem nenhuma mensagem de erro.
Vou até conferir. (Nota: isso não faz diferença pra você, pode ser considerado apenas um teste prévio no próprio github)

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 13 Jan 2021 16:30
por microvolution
JoséQuintas escreveu:hbmk2 *.hbp -w0 -rebuild
feito... diminuíram os erros, mas:..

Código: Selecionar todos

Microsoft Windows [versão 10.0.19041.685]
(c) 2020 Microsoft Corporation. Todos os direitos reservados.

C:\Users\micro>cd\mv\hmg.jpa

C:\MV\hmg.jpa>hbmk2 *.hbp -w0 -rebuild
hbmk2: Gerando sub-projeto (passo 2): source\hmg_core.hbp
hbmk2: Harbour: Compilando módulos...
Harbour 3.2.0dev (r2011030937)
Copyright (c) 1999-2020, https://harbour.github.io/
source\debugger\dbgGUI.prg(1450) Error E0030  Syntax error "syntax error at 'WINDOW'"
source\debugger\dbgGUI.prg(1459) Error E0030  Syntax error "syntax error at 'WINDOW'"
2 errors

No code generated.
hbmk2[hmg_core]: Error: Running Harbour compiler (built-in). 1
(C:\MV\hmg.3.5\HARBOUR\bin\harbour.exe) -n1 source\debugger\dbgGUI.prg source\BosTaurus\h_BosTaurus.prg source\class\HMG_TString.prg source\h_UNICODE.prg source\h_UNICODE_STRING.prg source\h_EventCB.prg source\h_GridEx.prg source\h_TimePicker.prg source\h_HMG_HPDF.prg source\h_HMG_HPDF_UNICODE.prg source\h_HMG_Zebra.prg source\h_GraphBitmap.prg source\ErrorSys.prg source\h_browse.prg source\h_button.prg source\h_checkbox.prg source\h_combo.prg source\h_controlmisc.prg source\h_datepicker.prg source\h_dialogs.prg source\h_editbox.prg source\h_error.prg source\h_font.prg source\h_frame.prg source\h_grid.prg source\h_help.prg source\h_hotkey.prg source\h_image.prg source\h_init.prg source\h_ipaddress.prg source\h_label.prg source\h_listbox.prg source\h_media.prg source\h_menu.prg source\h_monthcal.prg source\h_msgbox.prg source\h_progressbar.prg source\h_radio.prg source\h_richeditbox.prg source\h_rptgen.prg source\h_slider.prg source\h_spinner.prg source\h_status.prg source\h_tab.prg source\h_textbox.prg source\h_timer.prg source\h_tole.prg source\h_toolbar.prg source\h_tree.prg source\h_winapimisc.prg source\h_windows.prg -q -DHBMK_HAS_HBCT=1 -DHBMK_HAS_HBWIN=1 -DHBMK_HAS_MINIZIP=1 -DHBMK_HAS_HBMZIP=1 -DHBMK_HAS_HBMISC=1 -DHBMK_HAS_HBTIP=1 -DHBMK_HAS_LIBHPDF=1 -DHBMK_HAS_HBHPDF=1 -DHBMK_HAS_HBZEBRA=1 -DHBMK_HAS_HBFSHIP=1 -DHBMK_HAS_HBXPP=1 -DHBMK_HAS_XHB=1 -DHBMK_HAS_GTWVG=1 -DHBMK_HAS_HBNF=1 -DHBMK_HAS_HMG=1 -D__HBIDE__ -w2 -es2 -w0 -olib\win\mingw\.hbmk\win\mingw\ -ic:\mvinfo\hmg.3.5\harbour\include -iinclude -iC:\MV\hmg.jpa -ic:\mv\hmg.3.5\harbour\contrib\hbct -ic:\mvinfo\hmg.3.5\harbour\contrib\hbwin -ic:\mv\hmg.3.5\harbour\contrib\hbmzip -ic:\mv\hmg.3.5\harbour\contrib\hbtip -ic:\mvinfo\hmg.3.5\harbour\contrib\hbhpdf -ic:\mv\hmg.3.5\harbour\contrib\hbzebra -ic:\mv\hmg.3.5\harbour\contrib\xhb -ic:\mvinfo\hmg.3.5\harbour\contrib\hbfship -ic:\mv\hmg.3.5\harbour\contrib\hbxpp -ic:\mv\hmg.3.5\harbour\contrib\gtwvg -ic:\mvinfo\hmg.3.5\harbour\contrib\hbnf -u+c:\mv\hmg.3.5\harbour\contrib\hbwin\hbwin.ch -u+c:\mv\hmg.3.5\harbour\contrib\hbmzip\hbmzip.ch -u+c:\mv\hmg.3.5\harbour\contrib\hbhpdf\harupdf.ch -u+c:\mv\hmg.3.5\harbour\contrib\hbzebra\hbzebra.ch -u+c:\mvo\hmg.3.5\harbour\contrib\gtwvg\hbgtwvg.ch -u+c:\mv\hmg.3.5\harbour\contrib\gtwvg\wvgparts.ch -u+c:\mv\hmg.3.5\harbour\contrib\gtwvg\wvtwin.ch

C:\MV\hmg.jpa>
NOTA: Ceguei a pensar que era necessário executar o CMD como administrador, mas, os erros são os mesmos.

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 13 Jan 2021 22:47
por JoséQuintas
É inexplicável.
Já compilei isso trocentas vezes ajustando o build, e está ok.
O contador do github está no 91, só para o nome atual.
A compilação do github é exatamente com o que se baixa.

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 13 Jan 2021 22:49
por microvolution
JoséQuintas escreveu:O contador do github está no 91, só para o nome atual.
não entendo nada disso.
mas, aí?
nadamos e morremos na praia?

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 14 Jan 2021 15:45
por JoséQuintas
Esse contador se refere a quantas vezes já compilei tudo, e já foram mais vezes.
Em nenhuma delas dá erro.

Ah peraí.... lembro de umas correções que fiz....
Veja a indicação do erro, deve ser uma linha em branco a mais, encontrei isso várias vezes, talvez umas 10 no total.
Fiz a correção, mas talvez aí ainda esteja com elas.
Só apagar as linha a mais.

Bom... com certeza não foi isso que atrapalhou, porque não tinha chegado até essa parte.
Mas se for isso, tem mais fontes assim.

Mas até isso é curioso... porque se tinha compilado a lib antes, como é que não deu erro antes?

São os mistérios da programação.... a lei de Murphy... quando não pode dar problema, é quando ele acontece.

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 15 Jan 2021 09:52
por microvolution
JoséQuintas escreveu:tá fácil: function CallDll(...); RETURN CallDll32(...)
fiz o recomendado e apareceram as seguintes mensagens:

Código: Selecionar todos

c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_core
c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_crypt
c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_edit
c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_editex
c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_graph
c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_ini
c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_report
c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_hfcl
e agora devo acrescentar esse montão de .HBC no meu .HBP?

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 15 Jan 2021 09:58
por JoséQuintas
Tá, por whatsapp você falou que baixos os fontes de novo.
Se baixou de novo, faz tudo de novo.

A primeira coisa é compilar a LIB, as mensagens de erro são porque ainda não compilou a HMG, estão faltando as libs da hmg

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 15 Jan 2021 10:23
por microvolution
uma observação pra conhecimento de todos!
O Dr. Claudio Soto sugeriu que para compilar fora da IDE/HMG.3.5 via .BAT, no lugar de usar o HBMK2.EXE para se compilar e usar o *BUILD.BAT* e, eu ainda não havia testado.
Então, fiz a alteração no meu SISTEMA.BAT para o HBP.HBC original que vem com a HMG.3.5 no caminho \HMG.3.5\HMG.HBC e colocamos para compilação...
o resultado?
Compilou perfeitamente, mas, com a observação que as imagens do arquivo SISTEMA.RC não apareceram nenhuma (.ICO .JPG e .BMP).
Já alterando meu SISTEMA.HBP com a chamada à \HMG.JPA\HMG.HBC, não compilou e apresentou os mesmos erros abaixo:
microvolution escreveu:1 c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_core
2 c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_crypt
3 c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_edit
4 c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_editex
5 c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_graph
6 c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_ini
7 c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_report
8 c:/mv/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhmg_hfcl
aos poucos vamos caminhando e não mais nadando e morrendo na praia!
Aguardando mais instruções dos nobres professores!

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 15 Jan 2021 10:45
por JoséQuintas
Pensando bem....

Eram 2 versões de Harbour, agora são duas versões de HMG.

Quer usar as duas ao mesmo tempo.

Minha ajuda termina aqui.

Se baixou tudo de novo, comece tudo de novo, oras... ou vamos repetir desde o começo?

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 15 Jan 2021 11:24
por JoséQuintas
mas, pelo fato de apenas trocar do meu HMG.3.5\HMG.HBC pelo seu \HMG.JPA\HMG.HBC apresentou esta mesma mensagem de erro.
"apenas" trocou toda configuração.
Agora partiu pra "trocar peça", tá querendo HBP e BAT ao mesmo tempo.

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 15 Jan 2021 13:12
por microvolution
JoséQuintas escreveu:Agora partiu pra "trocar peça", tá querendo HBP e BAT ao mesmo tempo.
não entendo sua colocação. tô tentando fazer do jeito que o nobre professor tenta me explicar...
JoséQuintas escreveu:Eram 2 versões de Harbour, agora são duas versões de HMG.
a versão da hmg.3.5 baixei diretamente do hmgforum.com
JoséQuintas escreveu:Quer usar as duas ao mesmo tempo.
não. só estou seguindo sua orientação, caso não compile do jeito que já compilava. então, faço um paralelo ao outro, até entender completamente como compilar via .BAT e não mais via IDE/HMG, pois o NOBRE assim nos orientou, pois acredito no seu julgamento/conhecimento.
JoséQuintas escreveu:Se baixou tudo de novo, comece tudo de novo, oras... ou vamos repetir desde o começo?
não baixei nada novo. somente no momento em que nos passou o link de GITBHUB.
Sinto muito se não estamos falando a mesma linguagem.

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 16 Jan 2021 21:51
por microvolution
JoséQuintas escreveu: tá querendo HBP e BAT ao mesmo tempo
como disse, já que não está dando certo compilar via HBMK2.EXE SISTEMA.HBP, até que o nobre professor descobre os erros que ainda faltam, lembrei-me que o Dr. Soto, sugeriu usar o BUILD.BAT para compilar sem uso da IDE/HMG.
Então, apenas fiz o teste e deu certo.
Mas, ainda, gostaria de entender o porquê desses erros distintos:
- usando sua HMG.HBC geram aqueles erros que já mencionamos;
- usando a HMG.HBC original, gera o outro erro.

Só isso que falta pra que a "engrenagem" se encaixe.

HMG 3.5 - Compilar programa com BAT sem uso auxílio da IDE ?

Enviado: 16 Jan 2021 23:10
por JoséQuintas
Se acusa que falta LIBs.... é de se imaginar que os nomes mudaram.
As libs na hwgui não tem o prefixo hwgui_