Steps I did to allow me to compile fwh\samples using hbmk2
i. Ensure there's only 1 C compiler along my path and it's the one I want to use. Add harbour's path too.
ii. Copy fwh.hbc below to the root of FWH (modified from fwh.hbc found at harbour\utils\hbmk2\examples)
Note that the above .hbc doesn't contain harbour core libraries. Do not add it in as it's added by hbmk2 automatically.
iii. In fwh\samples, I created the following batch file, -.bat
So now at command prompt I just need to type:
>- invoice <Enter>
There. Now if I were to change my C compiler, the only thing I should need to do is adjusting the path to the C compiler that I want to use.
i. Ensure there's only 1 C compiler along my path and it's the one I want to use. Add harbour's path too.
ii. Copy fwh.hbc below to the root of FWH (modified from fwh.hbc found at harbour\utils\hbmk2\examples)
#
# $Id: fwh.hbc 11227 2009-06-05 16:55:43Z vszakats $
#
# Copy this file to FWH root dir and include it in hbmk2
# command line to build an app:
# > hbmk2 test.prg C:\fwh\fwh.hbc
xhb.hbc
{win}incpaths=include
{win}libpaths=lib
{win}gt=gtgui
{msvc}libs=fivehm fivehcm xhb
{allmingw}libs=fivehg fivehgc xhb
{bcc}libs=fiveh fivehc xhb
{win}libs=comctl32
{win}libs=comdlg32
{win}libs=gdi32
{win}libs=hbcplr
{win}libs=hbct
{win}libs=hbmzip
{win}libs=hbpcre
{win}libs=hbsqlit3
{win}libs=hbtip
{win}libs=hbwin
{win}libs=hbzlib
{win}libs=msimg32
{win}libs=odbc32
{win}libs=ole32
{win}libs=oleaut32
{win}libs=user32
{win}libs=uuid
{win}libs=vfw32
{win}libs=winmm
{win}libs=winspool
{win}libs=wsock32Note that the above .hbc doesn't contain harbour core libraries. Do not add it in as it's added by hbmk2 automatically.
iii. In fwh\samples, I created the following batch file, -.bat
hbmk2 %1 %2 %3 c:\fwh\fwh.hbcSo now at command prompt I just need to type:
>- invoice <Enter>
There. Now if I were to change my C compiler, the only thing I should need to do is adjusting the path to the C compiler that I want to use.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour