On 2009-02-19 19:48+0100 Arjen Markus wrote: > Hi Alan, > > my old MSVC compiler is complaining about a few things > with Terrence's patch - nothing I can not resolve, but > the worst is that the testlib program stops immediately: > > sizeof(time_t) = 4 > tests abandoned because time_t too small on this platform to run this > programme > > What is the way forward here? Will the qsastime library > fail altogether then? Output from qsastime_test does not > look bad (see below).
That's the expected result on 32-bit hardware platforms. You normally need a 64-bit platform (or a rather sophisticated 32-bit platform with 64-bit time_t's) to do this test. I have changed that error message to be more informative. A 32-bit time_t is not adequate to represent the extremely large date ranges used for these tests. Note, this is a fundamental limitation in the time_t argument of the gmtime and mktime routines in the C library that are used to test libqsastime in qsastime_testlib. There is no such time_t size limitation in libqsastime which is designed to work happily with 32-bit ints and 64-bit doubles (the usual sizes on both 32-bit and 64-bit hardware). So libqsatime should be okay on your system for large date ranges. However, it would still be nice to find a Windows system with 64-bit time_t's (for the C library comparison routines) and the usual 32-bit ints, and 64-bit doubles that gives a good result for qsastime_testlib. That would be a useful confirmation of the good results we have for that combination of sizes in Linux. Of course, the most important point is you have found a way to make windows build again with your recent commit. Thanks! Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel