On 09/11/09 23:37, Barry Jackson wrote:
This used to work a few months back:-
$ hbmk2 @barry -hblib -obarry
Now it compiles all the .prg files in barry.hbm to .c and stops with no
lib created.
Has the syntax changed? I have not been following the list very closely
recently.
[...@jackodesktop lib]$ hbmk2 @barry -hblib -obarry
hbmk2: Processing configuration: /usr/bin/hbmk.cfg
Harbour 2.0.0beta3 (Rev.12841)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'l_systmu.prg'...
Lines 3569, Functions/Procedures 1
Generating C source output to 'l_systmu.c'... Done.
---------------snip 50 or so-----------------------
Compiling 'l_valdat.prg'...
Lines 3594, Functions/Procedures 1
Generating C source output to 'l_valdat.c'... Done.
[...@jackodesktop lib]$
Trying to link my main application that uses the lib I get
/usr/bin/ld: cannot find -lbarry
Thanks, Barry
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
OK,
It was producing libbarry.a in the current directory, not
/usr/lib/harbour where I was expecting to find it.
Adding -instpath=/usr/lib/harbour/ to barry.hbm and building as root
fixed it.
I'm learning ;-/
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour