Ubuntu compile error.
Posted: Thu Feb 04, 2010 1:20 am
Hi all.
What error.
I'm using Ubuntu 9.10
-------------Source code-------------------------------------
#include "FiveLinux.ch"
FUNCTION Main()
CLEAR
@2,2 SAY "Hello World"
@4,0 SAY "Hit any key to continue"
INKEY(0)
CLEAR
RETURN NIL
----------------compile shell error list-------------------------------------
compiling...
xHarbour Compiler build 0.99.71 (SimpLex)
Copyright 1999-2007, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'sample.prg'...
Generating C source output to 'sample.c'...
Done.
compiling C module...
sample.c: In function ‘HB_FUN_MAIN’:
sample.c:57: error: ‘HB_P_BASELINE’ undeclared (first use in this function)
sample.c:57: error: (Each undeclared identifier is reported only once
sample.c:57: error: for each function it appears in.)
sample.c:72: error: ‘HB_P_LINEOFFSET’ undeclared (first use in this function)
linking...
gcc: sample.o: No such file or directory
done!
./buildx.sh: 16: ./sample: not found
buildx.sh ------------------------
# ./buildx.sh
echo compiling...
./../xharbour/bin/harbour $1 -n -I./../fwh/include -I./../xharbour/include $2
echo compiling C module...
gcc $1.c -c -I./../fwh/include -I./../xharbour/include `pkg-config --cflags gtk+-2.0`
echo linking...
gcc $1.o -o$1 -L./../fwh/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
...
Thank you.
What error.
I'm using Ubuntu 9.10
-------------Source code-------------------------------------
#include "FiveLinux.ch"
FUNCTION Main()
CLEAR
@2,2 SAY "Hello World"
@4,0 SAY "Hit any key to continue"
INKEY(0)
CLEAR
RETURN NIL
----------------compile shell error list-------------------------------------
compiling...
xHarbour Compiler build 0.99.71 (SimpLex)
Copyright 1999-2007, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'sample.prg'...
Generating C source output to 'sample.c'...
Done.
compiling C module...
sample.c: In function ‘HB_FUN_MAIN’:
sample.c:57: error: ‘HB_P_BASELINE’ undeclared (first use in this function)
sample.c:57: error: (Each undeclared identifier is reported only once
sample.c:57: error: for each function it appears in.)
sample.c:72: error: ‘HB_P_LINEOFFSET’ undeclared (first use in this function)
linking...
gcc: sample.o: No such file or directory
done!
./buildx.sh: 16: ./sample: not found
buildx.sh ------------------------
# ./buildx.sh
echo compiling...
./../xharbour/bin/harbour $1 -n -I./../fwh/include -I./../xharbour/include $2
echo compiling C module...
gcc $1.c -c -I./../fwh/include -I./../xharbour/include `pkg-config --cflags gtk+-2.0`
echo linking...
gcc $1.o -o$1 -L./../fwh/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
...
Thank you.