[Gambas-user] Version numbers of libraries used

Benoît Minisini g4mba5 at gmail.com
Sat Nov 25 06:05:28 CET 2017


Le 24/11/2017 à 18:41, Christof Thalhofer a écrit :
> Am 24.11.2017 um 17:58 schrieb Benoît Minisini:
> 
>> Maybe I should make some code from that. The libraries installed in the
>> user home directory are located in '.local/share/gambas3/lib'. They have
>> their version number inside their names.
> 
> I deploy my libraries as Debian packages via apt. A couple of people are
> working with my programs, and these programs use different libs written
> by me.
> 
> So the libs are located in /usr/lib/gambas3/$vendor
> 
> Here are all the libs, but I do not know which lib is used by a special
> application itself. I mean: As a programmer I would need sth like a
> 
> application.libraries
> 
> array, that I can iterate inside the (compiled) application. And I also
> would need to know the exact version number, like "1.0.146" ...
> 
> 1.0 is not enough.
> 
> In the moment I ask the other person using my program to do sth like
> 
> apt show deganius-deglib-gb | grep Version
> 
> if there is a problem and I have to know what version of my program or
> lib is used. I thought I could make it more convenient.
> 
> Alles Gute
> 
> Christof Thalhofer
> 

You get what you need in last commit: 
https://gitlab.com/gambas/gambas/commit/dfb179b5496a02b0c29f5d517293d5a3c5dbc02e

Component.Library will tell you if a loaded component is actually a library.

Component.Version will tell you its full version.

Regards,

-- 
Benoît Minisini


More information about the User mailing list