by xProgrammer » Tue Feb 26, 2008 11:57 am
Hi Fafi
All my work has been xHarbour / FiveLinux but this worked:
fafi.prg was as follows:
FUNCTION Main()
CLEAR
@2,2 SAY "Hello World"
@4,0 SAY "Hit any key to continue"
INKEY(0)
CLEAR
RETURN nil
Above code built and run using buildy.sh as follows:
# ./buildx.sh
clear
echo compiling...
./../../xharbour/bin/harbour $1 -n -I./../include -I./../../xharbour/include $2
echo compiling C module...
gcc $1.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`
echo linking...
gcc $1.o -o$1 -L./../lib -L./../../xharbour/lib -Wl,--start-group -lfivex -lfivec -lcommon -lvm -lrtl -lrdd -lmacro -llang -lcodepage -lpp -ldbfntx -ldbfcdx -ldbffpt -lhbsix -lhsx -lpcrepos -lusrrdd -ltip -lct -lcgi -lgtnul -lgtstd -lgtcgi -lgtcrs -lhbodbc -ldebug -lm -lgpm -lncurses -Wl,--end-group
rm $1.c
rm $1.o
echo done!
./$1
Some of those lib files may be fivelinux and not required (and you may not have them) but hopefully this will be enough to get you going.
I haven't done any straight xHarbour applications under Linux so I have always used buildx.sh as supplied by Antonio, or other build scripts derived from it.
Regards
Doug
(xProgrammer)