error: ‘mpz_inits’ was not declared in this scope

Laurent Fousse laurent at komite.net
Mon Sep 19 18:22:48 CEST 2011


Hello,

* Creatxr [Mon, Sep 19, 2011 at 11:58:00AM -0400]:
> It's my first time to use GMP library.
> What's happened with this code?
> thanks.
> =============================================
> /main.cpp|11|error: ‘mpz_inits’ was not declared in this scope|
> /main.cpp|13|error: ‘mpz_clears’ was not declared in this scope|

It's quite likely you're using a version of GMP that did not contain
mpz_inits and mpz_clears.
Fix: don't use them, or update your version of GMP.

Laurent.


More information about the gmp-discuss mailing list