[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to access Variables from gambas embedded in shared libraries
[Thread Prev] | [Thread Next]
- Subject: Re: How to access Variables from gambas embedded in shared libraries
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Tue, 6 Oct 2026 13:43:26 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 02/10/2026 à 12:16, Benoît Minisini a écrit :
Le 02/10/2026 à 00:34, Brian G a écrit :I have been doing this for a while.I thought others may have had to do the same or similar things with Linux libraries.The sample app accesses all the variables in the readline library.It would also be nice if the compiler extern allowed to define shared variables in a library using this techniqueas in extern rl_point as integer in "libreadline:8" not just functions. Anyway I hope this helps someone trying to do the same thing. cheersYou can use 'System.GetExternSymbol()' to get the address of a symbol in a shared library. No need to reimplement it yourself.But yes, a specific syntax would be nice. Regards,
The support for external variables have been landed in master.Beware that this is a work in progress! Assigning a external string variable should crash. There is no JIT support. And so on....
Enjoy! -- Benoît Minisini.
| Re: How to access Variables from gambas embedded in shared libraries | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| How to access Variables from gambas embedded in shared libraries | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: How to access Variables from gambas embedded in shared libraries | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |