[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with GMP
From: |
Torbjorn Granlund |
Subject: |
Re: Problems with GMP |
Date: |
26 Feb 2001 21:32:15 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6 |
Kevin Ryde <address@hidden> writes:
Jorge Andres Devoto <address@hidden> writes:
>
> I am having some problems when I try to use autconf with the gmp
> library. I have the library installed
> in /usr/local/lib. For example I have /usr/local/lib/libgmp.a.
>
> The problem is that if I have a configure.in with the lines
>
> AC_CHECK_LIB(gmp, mpz_init, ,
> [echo "** Cannot find gmp library **"])
In gmp 3 the library symbols are __gmpz_init and the like, you should
use that instead of just mpz_init. The next gmp release will have
some notes on this.
Isn't the proper to check for GMP to #include gmp.h
in such probing code? We might want to play with
the names used in a static (not dynamic!) libgmp.a,
making any fixed test unreliable.
--
Torbjörn