Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


xHarbour under Linux

xHarbour under Linux

xHarbour under Linux

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 =
  LDEBUG = .F.
  LGUI = .F.
  LMT = .F.



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 ?

RE: xHarbour under Linux

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 big smile


RE: xHarbour under Linux

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close