You should put BCC (or your compiler of
preference) in the PATH before running hbmk2.

Probably you have HB_COMPILER set in your
environment which forces BCC. I'd suggest
to delete it, it's not required anymore for
Harbour.

This is what I'm using now:

SET PATH=e:\bcc55\bin;%PATH%
hbmk2 bug

and this is what I get:

Harbour 2.0.0beta3 (Rev. 12501)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'bug.prg'...
Lines 16, Functions/Procedures 1
Generating C source output to 'bug.c'... Done.
bug.c:
Error E2209 bug.c 7: Unable to open include file 'hbvmpub.h'
Error E2209 bug.c 8: Unable to open include file 'hbinit.h'
Error E2258 bug.c 11: Declaration was expected in function HB_FUNC
Error E2258 bug.c 12: Declaration was expected in function HB_FUNC
Error E2258 bug.c 15: Declaration was expected in function HB_FUNC
Error E2188 bug.c 16: Expression syntax in function HB_FUNC
Warning W8070 bug.c 16: Function should return a value in function HB_FUNC Warning W8057 bug.c 16: Parameter 'MAIN' is never used in function HB_FUNC
Error E2040 bug.c 16: Declaration terminated incorrectly
*** 7 errors in Compile ***
hbmk2: Error: Running C compiler. 1
bcc32.exe -c -q -tWM -d -6 -O2 -OS -Ov -Oi -Oc - DHB_FM_STATISTICS_OFF -IE:\include bug.c

You probably moved hbmk2.exe out of the Harbour directory structure
(or vice versa), as an end result hbmk2's Harbour dir layout autodetection
cannot work.

Leave hbmk2.exe in <harbour>/bin, bin/win/bcc or bin/win dir to let
it find it's other components (like headers, which is missing in this
case).

BTW, libs should reside in <harbour>/lib/win/bcc or <harbour>/lib.

[ of course everything can be overridden by HB_*_INSTALL envvars,
but I don't recommend it. ]

Brgds,
Viktor

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to