Bill Allombert on Sun, 07 Sep 2025 09:18:22 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Windows: compilation issues


On Sat, Sep 06, 2025 at 11:30:52AM +0000, Tobias Diez wrote:
> Hello everyone,
> 
> I’m currently working on adding Windows support to the sagemath/cypari2 Python package, and I’ve run into a few issues where I’d really appreciate some help:
> 
> 1.  Compilation of Pari with Mingw

Consider running mingw on Linux, not on windows.
This is the supported option, see
<https://pari.math.u-bordeaux.fr/archives/pari-dev-1701/msg00041.html>
This one is tested every day, see
<https://pari.math.u-bordeaux.fr/buildlog.html>
for example:
<https://pari.math.u-bordeaux.fr/buildlogs/058c2293-e069-4f89-a190-a02acdb641ac>

> 3. `#define long long long` on Windows
     In Pari’s headers, Windows builds currently include:
     #define long long long

You need to include pari/pari.h last.

Cheers,
Bill