Jason Moxham on Sat, 27 Jun 2009 03:45:13 +0200


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

Re: Pari svn on MSVC


In the file
config/paricfgDOS.h.SH
we have

#if !defined(WINCE) && !(defined(_WIN32) && defined(_MSC_VER))
/* Timings: Don't use times because of the HZ / CLK_TCK confusion. */
#  define USE_FTIME 1
#  define HAS_STRFTIME
#endif
#if defined(_WIN32) && defined(_MSC_VER)
#  define HAS_STAT
#endif

#endif


the
#define HAS_STAT
causes problems as MSVC does not define the macros

es.obj : error LNK2001: unresolved external symbol _S_ISDIR
es.obj : error LNK2001: unresolved external symbol _S_ISREG

not defining HAS_STAT   sorts the problem out.

I expect we could find some sort of replacement for this if it's critical/useful

Jason