Bill Allombert on Tue, 2 Apr 2002 15:59:21 +0200

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

Re: Problems with pari compiled in MSVC under Windows

On Mon, Apr 01, 2002 at 11:52:04PM +0300, Ignat Soroko wrote:
> 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.

By any chance, do you know a portable way to know if a file is a
directory or not ? We only use opendir for this purpose.

(On Solaris you can open() and read() directory without getting errors.)