Rafael Guglielmetti on Thu, 25 Aug 2016 10:29:49 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Library on Windows |
Dear Bill, Thank you for your answer.When I use the files in the installer, and try to compile on Windows with MinGW (6.1.0)+MSys I get the following error:
parigen.h:18:14: error: 'long long long' is too long for GCC Line 18 is: #define long long longIf I download the sources Pari 2-7-6 and try to compile (same setting, after a ./Configure --prefix=c:/pari), I get: ../src/language/es.c:1447:25: fatal error: sys/ioctl.h: No such file or directory
Did I do something wrong? Thanks, Rafael Le 23.08.2016 à 15:56, Bill Allombert a écrit :
On Fri, Aug 19, 2016 at 10:37:18AM +0200, Rafael Guglielmetti wrote:Dear PARI Users, I'd like to know if it is possible to use the PARI library on Windows (with Visual Studio). What I did: * get the libpari.dll and create a .lib from it * create the paricfg.h file using the scripts in config/ When I try to compile, I still missed the file "parimt.h" and I don't find it.The installer for PARI 2.8.0 should include all the needed headers files: <http://pari.math.u-bordeaux.fr/pub/pari/unstable/Pari32-2-8-0.exe> or <http://pari.math.u-bordeaux.fr/pub/pari/unstable/Pari64-2-8-0.exe> ls include/pari genpari.h paricfg.h parierr.h pariinl.h pariold.h paristio.h paritype.h mpinl.h paricom.h parigen.h parimt.h pariport.h parisys.h paricast.h paridecl.h pari.h parinf.h paripriv.h paritune.h If you build PARI on windows, you need to use msys, and then follow the instruction for unix-like systems (use ./Configure --prefix='C:/pari' and make) In that case you need to run 'make install' to get all the headers files. Cheers, Bill.