buildH.BAT more than 1 PRG ?

buildH.BAT more than 1 PRG ?

Postby Jimmy » Sat Dec 21, 2019 7:17 am

hi,

while i still have Problem with FivEdit IDE i like to use CMD Box to compile / link.
it work with buildH.BAT for 1 PRG but what if i have more :?:

under HMG i have a *.HBP as Project file but nothing with FiveWin (when not using FivEdit) :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1733
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: buildH.BAT more than 1 PRG ?

Postby Antonio Linares » Sat Dec 21, 2019 7:27 am

Jimmy,

buildh.bat one another

one for one.prg and another for another.prg

simply modify this line in buildh.bat:
echo %1.obj %2.obj, + >> b32.bc
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: buildH.BAT more than 1 PRG ?

Postby Antonio Linares » Sat Dec 21, 2019 7:37 am

Jimmy,

You can also use Harbour's hbmk2 to build FWH apps with multiple PRGs:

test.hbp
Code: Select all  Expand view  RUN
tutor01.prg

-I..\include
-L..\lib
-lfiveh
-lfivehc

xhb.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc


hbmk2.bat
Code: Select all  Expand view  RUN
set path=c:\bcc7\bin
c:\harbour\bin\hbmk2 test


From the cmd do:
hbmk2 test -comp=bcc
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: buildH.BAT more than 1 PRG ?

Postby Jimmy » Sat Dec 21, 2019 8:55 am

hi Antonio,

THX, that is what i need for CMD Box. :D

---
have try it "exact" that Way but got a lot of unknown function(s)
Lines 647, Functions/Procedures 7
Generating C source output to 'R:\Temp\hbmk_qq6xab.dir\XBASE.c'... Done.
R:\Temp\hbmk_qq6xab.dir\CLICK2.c:
R:\Temp\hbmk_qq6xab.dir\CMD_LIST.c:
R:\Temp\hbmk_qq6xab.dir\DECLBUST.c:
R:\Temp\hbmk_qq6xab.dir\ERR_LOG.c:
R:\Temp\hbmk_qq6xab.dir\FILNPATH.c:
R:\Temp\hbmk_qq6xab.dir\FUNCTRAK.c:
R:\Temp\hbmk_qq6xab.dir\JULIAN.c:
R:\Temp\hbmk_qq6xab.dir\LIBREAD.c:
R:\Temp\hbmk_qq6xab.dir\NICEDATE.c:
R:\Temp\hbmk_qq6xab.dir\OBUFREAD.c:
R:\Temp\hbmk_qq6xab.dir\OBUFWRIT.c:
R:\Temp\hbmk_qq6xab.dir\PRB_AMPM.c:
R:\Temp\hbmk_qq6xab.dir\PRB_POP.c:
R:\Temp\hbmk_qq6xab.dir\PRB_PROP.c:
R:\Temp\hbmk_qq6xab.dir\PRB_STAK.c:
R:\Temp\hbmk_qq6xab.dir\PROFILE.c:
R:\Temp\hbmk_qq6xab.dir\QSORT.c:
R:\Temp\hbmk_qq6xab.dir\READLIST.c:
R:\Temp\hbmk_qq6xab.dir\READLNK.c:
R:\Temp\hbmk_qq6xab.dir\TOKEN.c:
R:\Temp\hbmk_qq6xab.dir\XBASE.c:

hbmk2: Error: Referenced, missing, but unknown function(s): DIRMAKE(),
HB_FUNCPTR(), TRUENAME(), NETRMTNAME(), CTOT(), HCLONE(), HEVAL(),
HSET(), TOLEAUTO(), CHARREM(), TOKENUPPER(), CHARREPL(), REMRIGHT(),
OCCURS(), LOG10(), FLOOR(), CHARONLY(), NTOCMONTH(), BEFORATNUM(),
HHASKEY(), ADDMONTH(), EOM(), TIMETOSEC(), OS_ISWTSCLIENT(), NUMAT(),
ANSITOWIDE(), AFTERATNUM(), EXENAME(), TXMLDOCUMENT(), HSETCASEMATCH(),
GETACTIVEOBJECT(), CREATEOBJECT(), HB_GETFILESINZIP(), HB_UNZIPOPEN(),
HB_UNZIPFILEFIRST(), HB_UNZIPFILEINFO(), HB_UNZIPFILEOPEN(),
HB_UNZIPFILEREAD(), HB_UNZIPFILECLOSE(), HB_UNZIPFILENEXT(),
HB_UNZIPCLOSE(), STOT(), HGETCASEMATCH(), STRTOHEX(), HB_ENUMINDEX(),
HB_DECODE(), HEXTOSTR(), ATTOKEN(), CEILING(), BLANK(), DATETIME(),
REMALL(), RANGEREPL(), __OLEVARIANTNEW(), HB_EXEC(), HB_REGEXREPLACE(),
ATSKIPSTRINGS(), CHARONE(), REMLEFT(), VALTOPRGEXP(), HMERGE(),
WILDMATCH(), NUMTOHEX(), WIDETOANSI(), I18N(), WIN_AXINIT(),
WAPI_CREATEWINDOWEX(), WIN_AXGETCONTROL(), WAPI_OUTPUTDEBUGSTRING(),
SECTOTIME(), CHARMIRR(), CHARSWAP(), HEXTONUM(), NOTIFY(), FILETIME(),
FILEDATE(), SETFDATI()

seems i have wrong *.HBC ... i do not want to "UnZip" ;)

OK, i know the Direction so i will find the Way, THX
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1733
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: buildH.BAT more than 1 PRG ?

Postby Jimmy » Sun Dec 22, 2019 7:25 pm

hi,

found out that i need Path to \harbour\contrib\xxx for every *.HBC (are in different directory)

i compile now as told with
Code: Select all  Expand view  RUN
hbmk2 CLICK2.HBP -comp=bcc


Question : how to include Debugger :?:
can i use a "different" Debugger ... (got Source from HMG Debugger)
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1733
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 55 guests