Problem if gidpost-2.14 and HDF5 2.0.0

Thank you for releasing gidpost 2.14.

I am reporting a problem that I encountered when building and linking
the gidpost 2.14 software with HDF5 2.0.0 using Visual Studio 2026.
The configuration of my PC and the steps I took are as follows:

  1. I am using Windows 11 Pro with Visual Studio 2026.
  2. The current target configuration is debug + x64.
  3. HDF5 was installed using hdf5-2.0.0-win-vs2022_cl.msi from the official HDF site, and the installation directory was C:\Program Files\HDF_Group\HDF5\2.0.0.
  4. I ran cmake from the ‘Developer PowerShell VS 18’ terminal. The batch file used for this was:
@rem Please run this batch file from the Developer PowerShell VS 18 terminal.
cmake -G "Visual Studio 18 2026" ^
-DENABLE_HDF5=ON ^
-DENABLE_FORTRAN_EXAMPLES=OFF ^jj
-DZLIB_INCLUDE_DIR="D:\local\zlib-1.3.1" ^
-DZLIB_LIBRARY="D:\local\build_zlib-1.3.1\Release\zlibstatic.lib" ^
-DHDF5DIR="C:\Program Files\HDF_Group\HDF5\2.0.0" ^
-B .\build_MSVCx64+HDF5_200 ^
-S .\gidpost-2.14
  1. Build testpost.exe in Visual Studio, then run “testpost.exe -f hdf5” in the console.

The output file ‘test.post.h5’ is generated, but it seems corrupted.

The output file ‘test.post.h5’ not corrupted if i use HDF5-1.14.6.

Regards,

Maybe this HDF5 version is too modern and appear issues, we will study it when HDF5 2.0 is more stable, and become the current version of vcpkg…

In current GiD current developer version we are compiling this library with the vcpkg tool, and last VCPKG_TAG=2026.01.16 is using HDF5 1.14.6

In fact for Windows it not necessary that you compile it, you can use our compiled libraries (gidpost.lib libhdf5.lib libhdf5_hl.lib zlib.lib)

located at gidpost-2.14\binaries\win\vs2026\x64

Are you using linked in a program written in FORTRAN 77, FORTRAN 90, C, C++ ?

In C/C++ are required also the .h includes of hdf5 and zlib, in FORTRAN the libs are enough

Thanks for the reply.

My machine runs Windows 11 Pro (64-bit) and I programme in C++. However, one of the libraries I use is open source and was written in FORTRAN.
As I do not have an Intel FORTRAN license, I mainly use the MSYS2-mingw64 compiler (gcc, g++ and gfortran).
As the GiD-provided gIdpost static libraries are MSVC-based, I am not comfortable with linking an MSVC-based library with an MSYS2-mingw64-based program.
Therefore, I would like to build a gIdpost static library based on MSYS2-mingw64.

The current version of HDF5 in software distributions is as follows:

  • I am not using vcpkg, but the readily downloadable version of HDF5 on the vcpkg website is 2.0.0 (as of Wednesday 11 February 2026, 11:56:20 JST).
  • On the HDF5 official website, HDF5 2.0.0 is the top recommendation.
  • On the MSYS2 website, HDF5 2.0.0 is also recommended.

I think it is now common practice to use HDF5 version 2.0.0 instead of 1.x.x.

Currently, two versions (1.14.6 and 2.0.0) are installed on my PC, but having two different versions causes a lot of confusion.

I hope to upgrade gidpost to be compatible with HDF5 2.0.0.

Regards,

It doesn’t matter if you compile in Windows your code with gcc or clang. You can link with libs compiled with MSVC (in fact probably you are linking with other Windows system .lib that are compiled with MSVC)

In any case you can off course recompile gidpost, HDF5 or zlib with other compilers.

I don’t know if really HDF5 2.0 has made some incompatible change problematic for gidpost.

We will study it and fix when this HDF5 version become the current version tag of vcpkg, until them if do you have troubles my recommendation is to use a more mature and tested version like HDF5 1.14.6

The vcpkg last tag 2026.02.27 has updated the hdf5 library from version 1.14.2 to 2.0

soon (after we release a new developer version 17.5.0d) we will try to update all vcpkg C++ managed libraries to this tag version, and then will study and solve all issues related to HDF5 gid postprocess format using hdf5 2.0

Thank you for your efforts.
I reported a problem with gidpost2.14 and HDF5 2.0.
However, it’s possible that the presence of both HDF5 2.0 and HDF5 1.x installed simultaneously caused confusion.
If the combination of gidpost2.14 and HDF5 2.0 works correctly, then my report of a problem was incorrect.
If my report was wrong, please forgive me.