[Gambas-user] Signal 11, when calling external function

Benoît Minisini gambas at ...1...
Thu Jun 10 15:24:35 CEST 2010


> Hi!
> I have use external function for certain tasks successfully, but I run
> into problems with recent revision of Gambas.
> 
> In Gambas:
> Public Extern Aja_Mtrx(pk0 As Pointer, pk1 As Pointer, pk2 As Pointer)
> In "libMlpp"
> 
> Public k0 As New Integer[31, 31]
> Public k1 As New Integer[31, 31]
> Public k2 As New Integer[31, 31]
> 
> Aja_Mtrx(k0.Data, k1.Data, k2.Data)
> 
> In C:
> void Aja_Mtrx(int (*k0)[31], int (*k1)[31], int (*k2)[31])
> 
> 
> Gambas3 revision 2995  Ubuntu 10.04 64bit
> 
> Jussi
> 

I'm not sure that the extern declaration matches: An Integer[31, 31] in Gambas 
is a int [31 * 31] in C, not a int (*)[31].

Regards,

-- 
Benoît Minisini




More information about the User mailing list