[Gambas-user] Working with .so library

Benoît Minisini g4mba5 at gmail.com
Mon Jun 24 16:28:53 CEST 2019

Le 24/06/2019 à 16:16, Cedron Dawg a écrit :
> Just thought of something.  This is C's way of passing by reference.  You might also try
> dim a as pointer
> libfptr_create(byref a)
> where the function has been declared byref;
> extern libfptr_create(byref a as pointer)
> Not sure it works for extern calls though, I've never tested it.

It does not.

But you don't need to store the address of a in another variable. You 
can just write:

Dim A As Pointer


Benoît Minisini

More information about the User mailing list