Ubuntu compile error.

Post Reply
yunbg1
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

Ubuntu compile error.

Post by yunbg1 »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Ubuntu compile error.

Post by Antonio Linares »

Yunbg,

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

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
yunbg1
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

Re: Ubuntu compile error.

Post by yunbg1 »

Thank you. Antonio Linares
regards, saludos
FWH User
FWPPC User
FWLinux User
Post Reply