Ubuntu compile error.

Ubuntu compile error.

Postby yunbg1 » 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.
FWH User
FWPPC User
FWLinux User
yunbg1
 
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

Re: Ubuntu compile error.

Postby Antonio Linares » Thu Feb 04, 2010 2:31 am

Yunbg,

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

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41312
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Ubuntu compile error.

Postby yunbg1 » Thu Feb 04, 2010 4:33 am

Thank you. Antonio Linares
regards, saludos
FWH User
FWPPC User
FWLinux User
yunbg1
 
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada


Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 2 guests