error on mpz_inits and mpz_clears

Rabindra Moirangthem m.rabin07 at
Tue Sep 24 10:01:11 UTC 2019

Hi Team,

I have installed the gmp library on a centos system. When I compiled my c
file, it gives errors only when I am using mpz_inits and mpz_clears in my
program. Other functions compiled successfully.
The errors given are:
undefined reference to `__gmpz_inits'
undefined reference to `__gmpz_clears'

What seems to be the problem here?

With regards,
Rabindra Moirangthem

More information about the gmp-bugs mailing list