There appears to be a bug with mingw where including the regular C inttypes.h won't work; instead you have to use the 'cinttypes' C++ version.
There appears to be a bug with mingw where including the regular C inttypes.h won't work; instead you have to use the 'cinttypes' C++ version.