INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!

*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.

Jobs

xHarbour under Linux

xHarbour under Linux

(OP)
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 ?

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

HTH
TonHu

RE: xHarbour under Linux

(OP)
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!

Resources

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