Ignat Soroko on Mon, 1 Apr 2002 23:52:04 +0300


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

Problems with pari compiled in MSVC under Windows


Dear Pari Users,
 
I need your advice:
 
I downloaded files
pari-2.1.3.tar
pari-2.2.2.tar
from pari homepage and wanted to compile them in MSVC under Windows.
I had made two attempts:
 
1. trying to compile pari-2.1.3.tar version in MSVC++ 5.0 under Windows 95
2. trying to compile pari-2.2.2.tar version in MSVC++ 6.0 under Windows 2000
 
I tried to follow directions of Bill Daly written in Odos\readme.msvc.
Here is some problems I encountered:
 
1. compiler gives many errors
fatal error C1083: Cannot open include file: 'paricfg.h'
I added one more additional directory C:\pari222\Odos to
"Preprocessor" menu, and this problem seems to have gone.
 
2(pari-2.2.2). compiler gives an error
C:\Pari222\src\language\es.c(2291) : fatal error C1083: Cannot
open include file: 'dirent.h': No such file or directory:
 
#ifdef HAS_OPENDIR
#  include <dirent.h>
#endif
 
I found out, that HAS_OPENDIR is defined only in file paricfg.h
in lines:
 /* comment this one if not on NT ??? */
#  define HAS_OPENDIR
 
After I commented out this line, all compiled and linked at last.
 

2(pari-2.1.3). compiler gives an error
C:\pari213\src\kernel\ix86\l0asm.c(78) : error C2282: 'ulong' is
followed by 'overflow' (missing ','?)
I couldn't think out nothing better than to replace 'ulong' by
'unsigned long'. After that the mistake disappeared.
 
 
 

Now the program is compiled and I am going to calculate some
Galois groups.
 
? polgalois(x^4+x-1)
  ***   exponent too large in exp.
 
This behaviuor takes place in both versions 2.1.3 and 2.2.2.
What can be advised in order to make it work?
 
Thank you!
 
Ignat Soroko,
Ignat.Soroko@islc.org