FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveLinux / FiveDroid (Android) Ubuntu compile error.
Posts: 109
Joined: Sun Nov 13, 2005 12:40 AM
Ubuntu compile error.
Posted: Thu Feb 04, 2010 01: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.

FWH User

FWPPC User

FWLinux User
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Ubuntu compile error.
Posted: Thu Feb 04, 2010 02:31 AM
Yunbg,

I send you by email the most recent xharbour, FiveLinux and buildx.sh :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 109
Joined: Sun Nov 13, 2005 12:40 AM
Re: Ubuntu compile error.
Posted: Thu Feb 04, 2010 04:33 AM

Thank you. Antonio Linares
regards, saludos

FWH User

FWPPC User

FWLinux User

Continue the discussion