Opened 5 years ago

Closed 5 years ago

#14897 closed build error (fixed)

MinGW Build Error in Windows 7 32-bit in Tiff code on trunk 73167

Reported by: stahta01 Owned by:
Priority: normal Milestone:
Component: wxMSW Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no


../../src/tiff/libtiff/tiff.h:111:2: error: unknown type name 'uint64'

I found a way to get by this error; not sure it is the most correct solution.

Tim S.

Index: src/tiff/libtiff/tiffconf.h
--- src/tiff/libtiff/tiffconf.h (revision 73167)
+++ src/tiff/libtiff/tiffconf.h (working copy)
@@ -7,6 +7,10 @@

#ifndef _TIFFCONF_
#define _TIFFCONF_

+#ifdef MINGW32
+#include <basetyps.h>

/* Define to 1 if the system has the type `int16'. */
/* #undef HAVE_INT16 */

Attachments (1)

wxWidgets-trunk-mono-SJLJ.patch download (398 bytes) - added by stahta01 5 years ago.
Possible patch

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by stahta01

Possible patch

comment:1 Changed 5 years ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [73190]) Fix libtiff compilation with MinGW.

At least some versions of MinGW don't define 64 bit integer types resulting in
errors when they're used in libtiff code, so explicitly include basetyps.h to
make sure these types are defined.

Closes #14897.

Note: See TracTickets for help on using tickets.