mini-gmp: error: no previous prototype for 'mpz_lucas_mod'

Vincent Lefevre vincent at vinc17.net
Thu Dec 20 13:20:42 UTC 2018


Hi,

I get the following error when compiling mini-gmp.c:

mini-gmp.c:3486:1: error: no previous prototype for 'mpz_lucas_mod' [-Werror=missing-prototypes]
 3486 | mpz_lucas_mod (mpz_t V, mpz_t Qk, long Q,
      | ^~~~~~~~~~~~~

Indeed, mini-gmp.c exports mpz_lucas_mod:

int
mpz_lucas_mod (mpz_t V, mpz_t Qk, long Q,
               mp_bitcnt_t b0, const mpz_t n)
{
[...]
}

but it is not declared in mini-gmp.h.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-bugs mailing list