2010.07.08 16:25 "[Tiff] strlcpy vs strncpy", by Bob Friesenhahn

2010.08.06 15:37 "Re: [Tiff] tiff4 on 32-bit Windows", by Olivier Paquet

On Fri, Aug 6, 2010 at 11:05 AM, <jcupitt@gmail.com> wrote:

tiff4 seems to work well on my usual machine (64-bit linux), but I'm having trouble creating files over 4GB with a 32-bit Windows binary.

I've spent a day chasing this so far :-( before I spend any more time on it, is this a known problem?

I don't know if it is a "known" problem as I've never tried to build libtiff on windows using any kind of officially supported method. However, it does work fine in the end here. First thing I'd check is tif_config.h/tiffconf.h: make sure TIFF_INT64_T and TIFF_UINT64_T are defined as signed/unsigned long long or something else which is 64-bit on windows. Note that long is *not* 64-bit on windows like it is on linux.


P.S. About Bob's reply: I'm using tif_win32.c so it is possible to get it working with that.