Hi Kenny,
1. Thanks a lot, IDE: AWBMENU.EXE IS SUCCESSFUL
2. Tested hbmk2 with bath file as follow: (error)
Would you please kindly advise how to solve the problems?
AWBMENU.BAT:
C:\HMG.3.4.3\HARBOUR\BIN\hbmk2 -oAWBMENU AWBMENU.prg CHECK.prg SETUSER.prg STDPROC.prg -lhbct libbcku.a libbr.a liboutq.a libqr.a libhbwin.a
Remark: the above bat is copied and modified from web C:\HMG.3.4.2\HARBOUR\BIN\hbmk2 -oAWBMENU AWBMENU.prg CHECK.prg SETUSER.prg STDPROC.prg -lhbct libbcku.a libbr.a liboutq.a libqr.a libhbwin.a
Set Win10 the environment variable PATH. insert at the bottom a new line C:\HMG.3.4.3\MINGW\BIN
C:\Users\rbtch\OneDrive\文件\AWB\AWB03>AWBMENU
Error message:
C:\Users\rbtch\OneDrive\文件\AWB\AWB03>C:\HMG.3.4.3\HARBOUR\BIN\hbmk2 -oAWBMENU AWBMENU.prg CHECK.prg SETUSER.prg STDPROC.prg -lhbct libbcku.a libbr.a liboutq.a libqr.a libhbwin.a
Harbour 3.2.0dev (r1601151502)
Copyright (c) 1999-2015, http://harbour-project.org/
Compiling 'AWBMENU.prg'...
Compiling 'airln.prg'...
Cannot open stdinpudat.prg, assumed external
Cannot open stddefvar.prg, assumed external
Cannot open stdsavedat.prg, assumed external
Lines 0, Functions/Procedures 32
Generating C source output to 'C:\Users\rbtch\AppData\Local\Temp\hbmk_9ei7e8.dir\AWBMENU.c'... Done.
Compiling 'CHECK.prg'...
Lines 101, Functions/Procedures 4
Generating C source output to 'C:\Users\rbtch\AppData\Local\Temp\hbmk_9ei7e8.dir\CHECK.c'... Done.
Compiling 'SETUSER.prg'...
Cannot open stddefvar.prg, assumed external
Cannot open stdinpudat.prg, assumed external
Cannot open stdsavedat.prg, assumed external
Lines 0, Functions/Procedures 9
Generating C source output to 'C:\Users\rbtch\AppData\Local\Temp\hbmk_9ei7e8.dir\SETUSER.c'... Done.
Compiling 'STDPROC.prg'...
Lines 594, Functions/Procedures 26
Generating C source output to 'C:\Users\rbtch\AppData\Local\Temp\hbmk_9ei7e8.dir\STDPROC.c'... Done.
gcc.exe: error: libbcku.a: No such file or directory
gcc.exe: error: libbr.a: No such file or directory
gcc.exe: error: liboutq.a: No such file or directory
gcc.exe: error: libqr.a: No such file or directory
gcc.exe: error: libhbwin.a: No such file or directory
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/rbtch/AppData/Local/Temp/hbmk_9ei7e8.dir/AWBMENU.o C:/Users/rbtch/AppData/Local/Temp/hbmk_9ei7e8.dir/CHECK.o C:/Users/rbtch/AppData/Local/Temp/hbmk_9ei7e8.dir/SETUSER.o C:/Users/rbtch/AppData/Local/Temp/hbmk_9ei7e8.dir/STDPROC.o libbcku.a libbr.a liboutq.a libqr.a libhbwin.a -mconsole -Wl,--start-group -lhbct -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oAWBMENU.exe -LC:/HMG.3.4.3/HARBOUR/lib/win/mingw
C:\Users\rbtch\OneDrive\文件\AWB\AWB03>
Robert
C:\HMG.3.4.3\HARBOUR\BIN\hbmk2 -oAWBMENU AWBMENU.prg CHECK.prg SETUSER.prg STDPROC.prg -lhbct libbcku.a libbr.a liboutq.a libqr.a libhbwin.a
This .bat is imitated/copy the syntax from web page C:\HMG.3.4.2\HARBOUR\BIN\hbmk2 -oAWBMENU 1.prg 2.prg 3.prg 4.prg -lhbct libbcku.a libbr.a liboutq.a libqr.a libhbwin.a
I do not know what these are *.a.
thinking the C:\HMG.3.4.2 and C:\HMG.3.4.3 should apply different *.a
RobertHi Jimmy,
1. View both contents of bat files my realization about it. I do not know right or not.
2. The difference for both just as flws:
build.bat: WithOutParam use *.hbp, or WithParam use MainFile
IF "%1"=="" GOTO WithOutParam
SET MainFile="%1"
GOTO WithParam
:WithOutParam
FOR %%x IN (*.hbp) DO ( ECHO Building %%x
IF "%NoRun%"=="" CALL %Temp1%\build.bat %%x
IF NOT "%NoRun%"=="" CALL %Temp1%\build.bat /n %%x )
GOTO End
:WithParam
IF "%NoRun%"=="" CALL %Temp1%\Build.bat %MainFile%
IF NOT "%NoRun%"=="" CALL %Temp1%\Build.bat /n %MainFile%
ide.bat : always use *.hbp
IF "%1"=="" for %%x in (*.hbp) do (%Temp1%\Ide\Ide.exe %%x)
IF NOT "%1"=="" %Temp1%\Ide\Ide.exe %1
So, seems the readme1st.txt statement:
Command line build:
build.bat <prgname.prg> | <projectname.hbp> > use *.prg or projectname.hbp
Ide build:
ide.bat <projectname.hbp> > use projectname.hbp only.
Hi Dear Friends,
I am beating around the bush really, always error warning so on:
undefined reference to `HB_FUN__DUMMY'
undefined reference to `HB_FUN__DEFINEWINDOW'
undefined reference to `HB_FUN__DEFINEMAINMENU'
………
I am learning step by step :Understanding multi gt
http://harbourlanguage.blogspot.com/2011/12/understanding-multi-gt.html
According to the instruction test one by
one
Both Test Set Environment & Lib :
set path=C:\hmg.3.4.3\;C:\hmg.3.4.3\harbour\bin;C:\hmg.3.4.3\mingw\bin;%path%
set include=C:\hmg.3.4.3\include;C:\hmg.3.4.3\harbour\include;C:\hmg.3.4.3\harbour\contrib\hbwin;%include%
set hb_user_libpaths=C:\hmg.3.4.3\lib C:\hmg.3.4.3\include
Test1. Start of an example cadastro.prg in text mode, see how to use and
successed build : hbmk2 cadastro.prg -gtwvt /gc3 > err.txt 2>&1 rem for text console mode in good order Test01
cadastro.prg :
procedure main()
DO while .t.
cls
@ 0,0 say "customer base"
@ 2,0 prompt "inclusion"
@ 4,0 prompt "change"
@ 6,0 prompt "exclusion"
@ 8,0 prompt "consultation"
@ 10,0 say "Choose an option"
menu to op
if op == 0
exit
elseif op == 1
inclusao()
elseif op == 2
alteration()
elseif op == 3
Dlete()
elseif op == 4
query()
endif
ENDDO
return
function inclusao()
cls
? "Inclusion of customers"
INKEY (0)
return
function change()
cls
? "change of the customers"
INKEY (0)
return
function alteration()
cls
? "Alteration(change) of the customers"
INKEY (0)
return
function Dlete()
cls
? "Exclusion(Delete) of customers"
INKEY (0)
return
function query ()
cls
? "Query(consultation) client"
INKEY (0)
return
2.
how to apply the use of
multi-gt in MiniGUI. use two functions of the
Harbour:
hb_gtCreate ()
hb_gtSelect ()
The purpose of this application is to convert text to graphic,
Test2. example cadastro.prg to graphic mode, see how to use
Failure build: hbmk2 cadastro2.prg-ic: \ MiniGUI \ include-Lc-lminigui: \ MiniGUI \ lib-gtgui
cadastro.prg :
# Include "minigui.ch"
REQUEST HB_GT_WIN_DEFAULT
request hb_gt_wvt
procedure main ()
// Due the section according to web page instruction is building error // so, make it simplified being this syntax:
* HMG-IDE UNICODE Form Designer Generated Code
DEFINE WINDOW Main
AT 138 , 235 ;
WIDTH 550 ;
HEIGHT 350 ;
VIRTUAL WIDTH Nil ;
VIRTUAL HEIGHT Nil ;
TITLE "" ;
ICON NIL ;
MAIN ;;
CURSOR NIL ;
ON INIT Nil ;
ON RELEASE Nil ;
ON INTERACTIVECLOSE Nil ;
ON MOUSECLICK Nil ;
ON MOUSEDRAG Nil ;
ON MOUSEMOVE Nil ;
ON SIZE Nil ;
ON MAXIMIZE Nil ;
ON MINIMIZE Nil ;
ON PAINT Nil ;
BACKCOLOR Nil ;
NOTIFYICON NIL ;
NOTIFYTOOLTIP NIL ;
ON NOTIFYCLICK Nil ;
ON GOTFOCUS Nil ;
ON LOSTFOCUS Nil ;
ON SCROLLUP Nil ;
ON SCROLLDOWN Nil ;
ON SCROLLLEFT Nil ;
ON SCROLLRIGHT Nil ;
ON HSCROLLBOX Nil ;
ON VSCROLLBOX Nil
END WINDOW
Load Window Main
Main.Center
Main.Activate
// this section according to web page instruction but build error
** DEFINE WINDOW MainWindow;
** AT 0,0 ;
** WIDTH 800 ;
** HEIGHT 600 ;
** TITLE "customer base" ;
** ICON 'DEMO.ICO' ;
** main ;
** FONT 'Arial' SIZE 10
** * DEFINE MAIN MENU
** * POPUP "Options"
** * ITEM "inclusion" ACTION inclusion ()
** * ITEM "change" ACTION alteration ()
** * ITEM "exclusion" ACTION Delete ()
** * ITEM "consultation" ACTION query ()
** * END POPUP
** * END MENU
** END WINDOW
** ACTIVATE WINDOW MainWindow
return
inclusion function ()
local TMP
Local pNewGT
pNewGT: hb_gtCreate = ("WVT")
TMP: = hb_gtSelect (pNewGT)
cls
? "Inclusion of customers'
INKEY (0)
pNewGT: = nil
hb_gtSelect (TMP)
return
function change ()
local TMP
Local pNewGT
pNewGT: hb_gtCreate = ("WVT")
TMP: = hb_gtSelect (pNewGT)
cls
? "Alteration of the customers"
INKEY (0)
pNewGT: = nil
hb_gtSelect (TMP)
return
function Delete ()
local TMP
Local pNewGT
pNewGT: hb_gtCreate = ("WVT")
TMP: = hb_gtSelect (pNewGT)
cls
? "Exclusion of customers"
INKEY (0)
pNewGT: = nil
hb_gtSelect (TMP)
return
function query ()
local TMP
Local pNewGT
pNewGT: hb_gtCreate = ("WVT")
TMP: = hb_gtSelect (pNewGT)
cls
? "Query client"
INKEY (0)
pNewGT: = nil
hb_gtSelect (TMP)
return
Robert
Error message:
hbmk2: Processing environment options: -LC:\hmg.3.4.3\lib
-LC:\hmg.3.4.3\include
Harbour 3.2.0dev (r1601151502)
Copyright (c) 1999-2015, http://harbour-project.org/
Compiling 'cadastro.prg'...
Lines 31043, Functions/Procedures 1
Generating C source output to 'C:\Users\rbtch\AppData\Local\Temp\hbmk_lcuvz7.dir\cadastro.c'... Done.
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0x38): undefined reference to `HB_FUN__DUMMY'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0x48): undefined reference to `HB_FUN__DEFINEWINDOW'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0x58): undefined reference to `HB_FUN__DEFINEMAINMENU'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0x68): undefined reference to `HB_FUN__DEFINEMENUPOPUP'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0x78): undefined reference to `HB_FUN__DEFINEMENUITEM'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0x88): undefined reference to `HB_FUN_INCLUSION'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0x98): undefined reference to `HB_FUN_ALTERATION'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0xb8): undefined reference to `HB_FUN_QUERY'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0xc8): undefined reference to `HB_FUN__ENDMENUPOPUP'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0xd8): undefined reference to `HB_FUN__ENDMENU'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0xe8): undefined reference to `HB_FUN__ENDWINDOW'
C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o:cadastro.c:(.data+0xf8): undefined reference to `HB_FUN__ACTIVATEWINDOW'
collect2.exe: error: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/cadastro.o C:/Users/rbtch/AppData/Local/Temp/hbmk_lcuvz7.dir/hbmk_zswnun.o -mwindows -Wl,--start-group -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -ocadastro.exe -LC:/hmg.3.4.3/harbour/lib/win/mingw -LC:/hmg.3.4.3/lib -LC:/hmg.3.4.3/include
hbmk2: Error: Referenced, missing, but unknown function(s): _DUMMY(),
_DEFINEWINDOW(), _DEFINEMAINMENU(), _DEFINEMENUPOPUP(),
_DEFINEMENUITEM(), INCLUSION(), ALTERATION(), QUERY(), _ENDMENUPOPUP(),
_ENDMENU(), _ENDWINDOW(), _ACTIVATEWINDOW()