How to link external library

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

RPC
Posts: 285
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: How to link external library

Post by RPC »

esgici wrote: Sun Apr 02, 2017 4:53 pm
This guy has important contribution on Harbour way; but he isn't starter of Harbour, but xHarbour ;)
Hi Esgici
Thanks for pointing out my mistake.
It happened so long ago I got mixed up in Harbour and xHarbour.
Both are still same to me - incomprhensible :?
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: How to link external library

Post by Pablo César »

RPC wrote: Tue Apr 04, 2017 8:27 pm I have included "libs = libhbnf" in Configurations tab of IDE, still it doesn't compile.
You did not pay close attention when I indicated the correct form at begining of this topic... :|
Screen173.png
Screen173.png (60.17 KiB) Viewed 2768 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: How to link external library

Post by esgici »

RPC wrote: Tue Apr 04, 2017 8:31 pm ...
Both are still same to me - incomprhensible :?
But naked reality is so clear: one is simply the FORK of the other ;)

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
RPC
Posts: 285
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: How to link external library

Post by RPC »

Pablo César wrote: Tue Apr 04, 2017 8:32 pm
RPC wrote: Tue Apr 04, 2017 8:27 pm I have included "libs = libhbnf" in Configurations tab of IDE, still it doesn't compile.
You did not pay close attention when I indicated the correct form at begining of this topic... :|
Screen173.png
Hi Pablo
I tried what you have indicated. I also tried "libs = libhbnf" since that library-libhbnf.a- is in hmg directory
C:\hmg.3.4.3\HARBOUR\lib\win\mingw
Still it throws error for FT_FWRITELN function.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: How to link external library

Post by Pablo César »

Hi Rajeev,
RPC wrote: Mon Apr 10, 2017 6:50 pm I also tried "libs = libhbnf" since that library-libhbnf.a- is in hmg directory
C:\hmg.3.4.3\HARBOUR\lib\win\mingw
I do not know if it's by convention or if it's even a MiniGW compiler requirement that all libraries should start with "lib".

But note the listing below that is only permissible "in case" the lib name has "libLIB", understood ?
Screen178.png
Screen178.png (23.86 KiB) Viewed 2700 times
 
RPC wrote: Mon Apr 10, 2017 6:50 pm Still it throws error for FT_FWRITELN function.
Even using ft_FWriteLn() instead this became obsolete this named ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply