Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xHarbour under Linux

Status
Not open for further replies.

Msilver2

Programmer
Joined
Apr 12, 2003
Messages
9
Location
RO
I try to make some tests with xHarbour on Linux.
I made a lib file and I try to make an executable linking with my lib file.

My project file looks like this:

CINI =
C_OUTPUTFOLDER =
DEFFILE =
INCLUDEFOLDERS =
LAUTORUN =
LDEBUG = .F.
LGUI = .F.
LIBFOLDERS =
LMT = .F.
LPRG_CLASSICDEBUG = .F.
LPRG_DEBUG = .F.
LUSEDLL = .F.
MAPFILE =
MYC_FLAGS =
MYDEFINES =
MYLINK_FLAGS =
MYPRG_FLAGS =
MYRC_FLAGS =
MYSLY_FLAGS =
OUTPUTFOLDER =
PRG_OUTPUTFOLDER =
RC_OUTPUTFOLDER =
RUNARGUMENTS =
SLY_OUTPUTFOLDER =
TARGETFOLDER =

[2LAN.prg]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =

[hlib.lib]

but it does not work, generates this log file:

Type: C >>>xblnk -L/usr/lib/xbuilder -Wl,--noinhibit-exec -static -gtcrs -L "/usr/lib/xbuilder" -L "/usr/lib" "2LAN.o" -lh. -lpthread -lgpm -lncurses -lm -lslang -o"2LAN"<<<

/usr/bin/ld: cannot find -lh.
collect2: ld returned 1 exit status

Type: C >>>Couldn't build: 2LAN<<<

Have anybody idea what is wrong with my project ?
 
It's quite obvious you are missing the library called h (-lh. parameter)
Did you make this script using HBMake? then you probably added this as an extra lib parameter, you'd better take that parameter out, and re-try.

Best xharbour support is to be found at nntp://news.xharbour.org (free access to most groups) where your best bet would be the 'xHarbour' group :-D

HTH
TonHu
 
I made this project with xbuild, and I do not have any "h" library, so I did not missed it, xbuid put it on my project (so in my command line), and I don't know why ?!

If I try to execute the command:
xblnk -L/usr/lib/xbuilder -Wl,--noinhibit-exec -static -gtcrs -L "/usr/lib/xbuilder" -L "/usr/lib" "2LAN.o" -lh. -lpthread -lgpm -lncurses -lm -lslang -o"2LAN"

from the console, there is an other error:
strip: './2LAN': No such file

I took this command from the log file.

I have no idea wat's happen.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top