Hello Halim,

On Apr 20, 2010, at 7:23 AM, Halim Issa wrote:

> Hello,
> 
> I'm completely new to Harbour after having used Clipper 5.0 under DOS
> for quite a few years. Having downloaded and installed Harbour version
> 2.0.0 on OSX without any problems (ie error messages), I've run into
> trouble compiling the test program:
> 
> prompt>hbmk2 hello
> hbmk2: Processing configuration: /usr/local/bin/hbmk.cfg
> Harbour 2.0.0 (Rev. 13372)
> Copyright (c) 1999-2010, http://www.harbour-project.org/
> Compiling 'hello.prg'...
> Lines 11, Functions/Procedures 1
> Generating C source output to 'hello.c'... Done.
> ld: library not found for -lharbour
> hbmk2: Error: Running linker. 1
> clang hello.o   -lhbcplr -lhbdebug -lharbour  -o hello 
> -L/usr/local/lib/harbour
> prompt>

This is because hbmk2 tries to link with shared libraries and this are
not found.

You can bypass this by linking with static libs:

$ hbmk2 -static hello


Or, you can provide the missing shared lib with:

$ sudo ln -s /usr/local/lib/harbour/libharbour.2.1.0.dylib 
/usr/local/lib/harbour/libharbour.dylib
$ export DYLD_LIBRARY_PATH=/usr/local/lib/harbour

the above will create a symbolic link to the shared harbour lib
and set the DYLD_LIBRARY_PATH to point were it is.

then you will have working right the following:

$ hbmk2 hello
$ ./hello

[snip]

HTH


best regards,

Teo



_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
Harbour-users@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour-users

Reply via email to