# Building 1.8.7 on Win32 using MinGW compiler (in msys shell)

**URL:** <https://forum.hdfgroup.org/t/building-1-8-7-on-win32-using-mingw-compiler-in-msys-shell/2376>\
**Category:** Hdf-forum archives\
**Created:** [October 28, 2011, 12:12pm UTC](https://forum.hdfgroup.org/t/building-1-8-7-on-win32-using-mingw-compiler-in-msys-shell/2376 "2011-10-28T12:12:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sisyphus](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Sisyphus](https://forum.hdfgroup.org/u/Sisyphus)\
**Post date:** [October 28, 2011, 12:12pm UTC](https://forum.hdfgroup.org/t/building-1-8-7-on-win32-using-mingw-compiler-in-msys-shell/2376/1 "2011-10-28T12:12:09Z")

</div>

Hi,

Version 1.8.6 builds straight out of the box for me, but not 1.8.7.

Firstly, there's a 'struct timezone' definition in src/H5win32defs.h that  
needs to be removed (because that has already been defined in sys/time.h)  
.... no big deal.

But then, later on, I get:

&nbsp;&nbsp;CC vfd.o  
vfd.c: In function 'test\_windows':  
vfd.c:1335:8: error: 'H5FD\_WINDOWS' undeclared (first use in this function)  
vfd.c:1335:8: note: each undeclared identifier is reported only once for  
each function it appears in  
make[1]: \*\*\* [vfd.o] Error 1  
make[1]: Leaving directory `/c/comp/hdf5-1.8.7/test'  
make: \*\*\* [all-recursive] Error 1

'H5FD\_WINDOWS' can only be undeclared if 'src/H5FDwindows.h' did not get  
included.  
Intuitively, it seems rather unlikely that this is correct - but I'm unsure what needs to be done.

Any advice about this ? (I'll keep poking at it anyway.)

Cheers,  
Rob
