On Mon, Jun 15, 2015 at 05:08:08PM +0000, Daniel R. Grayson wrote:
> Package: pari
> Version: 2.7.3
>
> I installed pari 2.7.3 and tried to compile it with the compiler suite
> provided by
> the package mingw-w64-x86_64-gcc provided by MSYS2 (
>
> $ uname -a
> MINGW64_NT-6.1 freedom 2.1.4(0.287/5/3) 2015-06-08 22:11 x86_64 Msys
> $ gcc --version
> gcc.exe (Rev5, Built by MSYS2 project) 4.9.2
>
> ). I also installed the package mingw-w64-x86_64-gmp (6.0.0-2) to get
> libgmp.
>
> I found three problems:
Hello Daniel,
I suggest you read
<http://pari.math.u-bordeaux.fr/archives/pari-dev-1506/msg00000.html>
Thanks, I'll try out the pre-release of 2.7.4!
> (3) Pari insists the user tell it where gmp.h is, even though the
> compiler knows where to
> find it (it's not in /usr/include). Why not just ask the
> compiler if it can be found by compiling
> a one-line program?
If you specify where libgmp is, then you have to specify where gmp.h is,
otherwise, PARI might end up using the wrong gmp.h file.
But I don't want to specify the location of libgmp either -- the package manager for
MSYS2 does a good job installing both the library and the include files where
the compiler can find them (in /mingw64/lib and /mingw64/include). Neither the user
nor pari need to know where they are.
Thanks for your interest in PARI/GP!
Bill.