mpz_array_init

trabunix trabunix@terra.com.br
Mon, 2 Jun 2003 01:59:45 -0200


I'm using libgmp4.1.2_2 on FreeBSD and I need an array with a Num element(Num is a const) of mpz_t type. I've tried :

mpz_t  *arr;

....

arr = (mpz_t *)malloc(sizeof(mpz_t)*Num);
mpz_array_init(arr,Num,1024);

...

and I've got this message:

warnig: passing arg 1 of ' __gmpz_array_init' from incompatible pointer type.

How can I inicialize it properly ?