Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in HDF5 breaking build #11

Closed
skn123 opened this issue Sep 21, 2016 · 2 comments
Closed

Changes in HDF5 breaking build #11

skn123 opened this issue Sep 21, 2016 · 2 comments

Comments

@skn123
Copy link

skn123 commented Sep 21, 2016

The current HDF5 trunk does not have some functions (like Attribute) in the C++ class. As a result the code is not building. We can revert back to older versions, but apparently those libraries are causing other projects to crash from a severe memory leak! Any thoughts?
Specifically this function is where the code starts failing to compile
template <typename T> void save_scalar_attribute (const H5::H5Location &h5obj, const std::string &name, const T &value) { const H5::DataType * const datatype = DatatypeSpecialization<T>::get(); H5::DataSpace dataspace(H5S_SCALAR); H5::Attribute att = h5obj.createAttribute(name, *datatype, dataspace); att.write(*datatype, &value); }
Apparently, createAttribute is not there in the H5Location

@garrison
Copy link
Owner

Is there a released version of HDF5 for which the code fails, or is it only trunk? If you don't need attributes I suppose the simple thing would be to remove those portions of the header file. I no longer use this library myself anymore so I don't expect I will fix it, but I'd be happy to merge a pull request that fixes things.

@garrison
Copy link
Owner

Thanks for the report. The latest main branch should fix this problem; feel free to re-open if not.

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

No branches or pull requests

2 participants