Determine GMP version

Torbjorn Granlund tege at
Mon Apr 10 10:48:52 CEST 2006

"Sisyphus" <sisyphus1 at> writes:

  Is there a preprocessor command that will determine the version of the GMP
  library ? This could be useful if we want to use mpz_combit and/or
  mpz_rootrem (which are new in 4.2):
  #ifdef symbolThatSpecifies4.2
  // we can code using mpz_combit and mpz_rootrem
  // we need to code using a workaround
Look for "version" in the GMP manual.


More information about the gmp-discuss mailing list