# VS19: Error opening compiled module file

**URL:** <https://forum.hdfgroup.org/t/vs19-error-opening-compiled-module-file/11435>\
**Category:** HDF5 Library\
**Created:** [August 16, 2023, 4:32pm UTC](https://forum.hdfgroup.org/t/vs19-error-opening-compiled-module-file/11435 "2023-08-16T16:32:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle.moats](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/k/c2a13f/32.png) [@kyle.moats](https://forum.hdfgroup.org/u/kyle.moats)\
**Post date:** [August 16, 2023, 4:32pm UTC](https://forum.hdfgroup.org/t/vs19-error-opening-compiled-module-file/11435/1 "2023-08-16T16:32:28Z")

</div>

I installed HDF5 1.14.1 from a precompiled binary using all default settings. I opened my existing fortran project in Visual Studio 2019 and added “use HDF5” to a module. I tried following the [directions](https://docs.hdfgroup.org/hdf5/v1_14/_l_b_compiling.html#secLBCompilingVS) for project configuration, and also referred to an older [thread](https://forum.hdfgroup.org/t/hdf5-fortran-visual-studio-2019-intel-fortran-win10-x64/6205). I have set All Configurations as follows:

> Fortran\>General\>Additional Include Directories = C:\Program Files\HDF\_Group\HDF5\1.14.1\mod\static  
> Linker\>General\>Additional Library Directories = C:\Program Files\HDF\_Group\HDF5\1.14.1\lib  
> Linker\>Input\>Additional Dependencies = libhdf5\_fortran.lib libhdf5.lib libz.lib libszaec.lib libaec.lib

I also added to my PATH:

> C:\Program Files\HDF\_Group\HDF5\1.14.1\bin

When I try to build the Release x64 configuration, the error I see is:

> error #7002: Error in opening the compiled module file. Check INCLUDE paths. [HDF5]

So it seems the compiler can’t find the module. What else do I need to do to get it working? Thanks
