Skip to content

Fix HDF5 version check for 2.x - #8

Open
MaxKopacz wants to merge 1 commit into
mainfrom
ver2-fix
Open

Fix HDF5 version check for 2.x#8
MaxKopacz wants to merge 1 commit into
mainfrom
ver2-fix

Conversation

@MaxKopacz

Copy link
Copy Markdown

traits.hpp gated its 1.8-vs-1.6 API selection on H5_VERS_MINOR >= 8, which
assumes HDF5 is always 1.x. Against HDF5 2.x (Homebrew currently ships 2.1.1)
H5_VERS_MINOR is 1, so 1 >= 8 is false and the pre-1.8 branch is compiled —
passing 1.6-era argument counts to the *2 functions that H5version.h maps
the unversioned macros onto. Result is 11 no matching function errors across
H5Eprint, H5Gopen, H5Gcreate, H5Dopen, H5Dcreate, H5Acreate and
H5Lcreate_external.

Guards are now H5_VERS_MAJOR > 1 || H5_VERS_MINOR >= 8.

Note: version-2-check (a64a457) is a byte-identical duplicate of this branch
and can be deleted once this merges.

🤖 Generated with Claude Code

@MaxKopacz
MaxKopacz requested a review from jappa July 29, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant