Missing inttypes.h when compiling HDF5 examples on Windows

I’ve run into this before, and my understanding is that <inttypes.h> is a common extension and not part of the standard, so isn’t included with some compilers (e.g. MSVC). It shouldn’t be necessary though - it’s mostly just printf-type format macros. <stdint.h> on the other hand defines specific-precision integer types. Which example requires <inttypes.h>?

If it’s being pulled in through <hdf5.h> then check your H5pubconf.h and ensure H5_HAVE_INTTYPES_H is not defined.

Edit: Looks like I added <stdint.h> to my MSVC distro myself… Shouldn’t be necessary though because H5public.h defines the types itself; though it will try to pull in the headers depending on those #defines