What's the purpose of hbct.hbc and when do I need to include it in hbmk2

220 views
Skip to first unread message

Steve Litt

unread,
Oct 18, 2023, 8:52:02 PM10/18/23
to Harbour Users
What's the purpose of hbct.hbc and when do I need to include it in
hbmk2?

Thanks,

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21

Angel Pais

unread,
Oct 19, 2023, 6:50:27 AM10/19/23
to harbou...@googlegroups.com
ct stands for Clipper Tools

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/20231018205156.3a54a951%40mydesk.domain.cxm.

Steve Litt

unread,
Oct 19, 2023, 6:53:02 PM10/19/23
to harbou...@googlegroups.com
Thanks Angel,

Is there any situation in which I need to use hbct.hbc on the hbmk2
command line while building a program?

Thanks,

SteveT


Angel Pais said on Thu, 19 Oct 2023 07:50:10 -0300

pete....@gmail.com

unread,
Oct 20, 2023, 2:40:20 AM10/20/23
to Harbour Users
Hi,

On Friday, 20 October 2023 at 01:53:02 UTC+3 sl...@troubleshooters.com wrote:
Is there any situation in which I need to use hbct.hbc on the hbmk2
 
Well, `HBMK2` is a very sophisticated "make" tool for Harbour (and not only!).
Being so, this masterpiece (a great harbour-ness monolith, I must admit.. :-) )
does utilize several configuration files to do its hard work.
One of them is .hbc, which is a link-time configuration file intended to accompany 
libraries (primarily, yet not exclusively). It contains info about same-named library
(paths, switches, macros etc.) to help  hbmk2 where to find and how to use 
the library it is referred to.
So, when the `hbct` library needs to be linked (because your program calls
functions from that library) it is more effective and recommended to add hbct.hbc
instead of library name per se, in your .hbp project file or directly in command line
and let the hmk2 to exploit the directives found inside it, regarding how to link hbct.
Thankfully, we have one .hbc for every contrib library, while you can also create
one for any of your-own library(ies).
More about hbmk2 and its powerful (and quite a lot) features can be found
here (for hb3.2) and here (for hb3.4)

regards,
Pete

fdaniele

unread,
Oct 20, 2023, 3:27:02 AM10/20/23
to Harbour Users

beautiful explanation mr. Pete
it should be published somewhere, I wish I had found it when I started :-)
Well done!

Daniele

Steve Litt

unread,
Oct 21, 2023, 2:23:34 AM10/21/23
to harbou...@googlegroups.com
pete....@gmail.com said on Thu, 19 Oct 2023 23:40:20 -0700 (PDT)


>So, when the `hbct` library needs to be linked (because your program
>calls functions from that library)

Thanks Pete. You've refined my question to its essence.

So my refined question is this: Which functions and functionalities
does hbct give us?

Mario H. Sabado

unread,
Oct 21, 2023, 3:10:05 AM10/21/23
to harbou...@googlegroups.com
Hi Steve,

Below link has list of functions for each available library in Harbour.


Here's also a great resource forharbouri maintained by Eric:


Regards,
Mario

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.

Steve Litt

unread,
Oct 21, 2023, 7:54:17 PM10/21/23
to harbou...@googlegroups.com
Thanks Mario!


Mario H. Sabado said on Sat, 21 Oct 2023 15:09:51 +0800
>https://groups.google.com/d/msgid/harbour-users/CAGuBOFp3PLLSS8MVv1--hVsCx2wdMBKoHtAoeW13%2BeS6-mzFJg%40mail.gmail.com.

pete....@gmail.com

unread,
Oct 23, 2023, 12:41:48 AM10/23/23
to Harbour Users
On Saturday, 21 October 2023 at 09:23:34 UTC+3 sl...@troubleshooters.com wrote:
So my refined question is this: Which functions and functionalities
does hbct give us?


regards,
Pete
Reply all
Reply to author
Forward
0 new messages