title: Error compiling HDF5 with MinGW and CMake
body: <p>I'm trying to compile HDF5 with MinGW's gcc 4.8.1 and CMake. I followed the instructions in the <code>INSTALL_CMake</code> documentation for Windows and read everything that I found on Google but I still get the following errors:</p>
  
  <pre><code>In file included from c:\mingw32-xy\include\fcntl.h:37:0,
                   from C:\Users\jicervan.NDC\Downloads\hdf5-1.8.13\hdf5-1.8.13\src\H5private.h:53,
                   from C:\Users\jicervan.NDC\Downloads\hdf5-1.8.13\hdf5-1.8.13\src\H5detect.c:57:
  c:\mingw32-xy\include\io.h:301:1: error: unknown type name 'off64_t'
   __CRT_INLINE off64_t lseek64 (int, off64_t, int);
   ^
  c:\mingw32-xy\include\io.h:301:36: error: unknown type name 'off64_t'
   __CRT_INLINE off64_t lseek64 (int, off64_t, int);
                                      ^
  c:\mingw32-xy\include\io.h:302:1: error: unknown type name 'off64_t'
   __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
   ^
  c:\mingw32-xy\include\io.h:302:39: error: unknown type name 'off64_t'
   __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
                                         ^
  In file included from C:\Users\jicervan.NDC\Downloads\hdf5-1.8.13\hdf5-1.8.13\src\H5private.h:70:0,
                   from C:\Users\jicervan.NDC\Downloads\hdf5-1.8.13\hdf5-1.8.13\src\H5detect.c:57:
  c:\mingw32-xy\include\unistd.h:65:20: error: unknown type name 'off_t'
   int ftruncate(int, off_t);
  </code></pre>
  
  <p>The errors and warnings go on and on with a long list of warnings and undefines. Does anybody has any suggestions on how to solve this problem? Are there any other alternatives like using the Visual Studio binaries with MinGW maybe?</p>