Hi,
I am trying to compile this basic example from a clipper book.
The issue is not related to this example, but general when I try to include a .ch file.
I am using FreeBSD and I have checked that the include files at the -I parameter actually contain the
inkey.ch file.
---
$ cat Test1.prg
#include "
inkey.ch"
LOCAL cString := "Hello World"
LOCAL nKey
SET COLOR TO "W/B,N/BG,BG,,N+/BG"
@ 10, 12 SAY cString
nKey := Inkey(0)
IF nKey == K_ESC
? Space(12) + "Good bye cruel world."
ENDIF
---
$ cat makefile
CC = cc
HB = /usr/local/bin/harbour
HB_INCLUDE = -I/usr/local/include/harbour
HB_LIB = -L/usr/local/lib/harbour -lhbvm -lhbdebug -lhbcommon -lhbrtl -lhbnulrdd -lhbmacro -lhbvmmt -lgttrm -lm
all: Test1
Test1: Test1.c
$(CC) $(HB_INCLUDE) -c Test1.c
$(CC) Test1.o $(HB_LIB) -o Test1
Test1.c: Test1.prg
$(HB) Test1.prg
clean:
rm -f *.o *.c CustomerAddScreenTest
---
$ make Test1
/usr/local/bin/harbour Test1.prg
Harbour 3.4.0dev () (20-2-08-86 66:16)
Copyright (c) 1999-2022,
https://github.com/vszakats/hb/Compiling 'Test1.prg'...
Test1.prg(1) Error F0029 Can't open #include file '
inkey.ch'
*** Error code 1
Stop.
--