Question: Error in define_external - too many arguments in external procedure definition

In Maple 11 I need to write define_external procedure with 23 arguments.

For example:
   test1 := define_external('myproc',
                                               N1::(integer[4]),
                                               N2::(integer[4]),
                                               .....,
                                               N23::(integer[4]),
                                               LIB = "mylib.so");
    n1:=1;
    n2:=1;
    ...
    n23=1;
   
    test1(n1,n2,...,n23);
 

    After this I get an arrow:
    internal limit reached: too many arguments in external procedur definition

   But if I write the same just with 20 or less arguments everything is
   working fine.

   So, if I write any function in .c with more than 20 arguments and then call with define_external
   then I always get such mistake.

   Is it the way to increase memory which Maple using for define_external
   procedure?

Please Wait...