Giter Site home page Giter Site logo

sp_hdf5's People

Contributors

kmsmith137 avatar mrafieir avatar

Watchers

 avatar  avatar  avatar  avatar

sp_hdf5's Issues

Missing attributes when compiling

Hi Kendrick,

Have you ever seen these issues when compiling? This is probably an issue on my side, but I'm curious if this is something you have observed before.

g++ -std=c++11 -Wall -O3 -march=native -I. -I/usr/local/hdf5/include -o example_read example_read.cpp -lhdf5_cpp -lhdf5
In file included from example_read.cpp:5:0:
sp_hdf5.hpp: In function ‘H5::Group sp_hdf5::hdf5_open_group(const H5::CommonFG&, const string&)’:
sp_hdf5.hpp:33:96: error: ‘const class H5::CommonFG’ has no member named ‘openGroup’
 inline H5::Group hdf5_open_group(const H5::CommonFG &x, const std::string &name)    { return x.openGroup(name); }
                                                                                                ^
sp_hdf5.hpp: In function ‘H5::Group sp_hdf5::hdf5_create_group(const H5::CommonFG&, const string&)’:
sp_hdf5.hpp:34:96: error: ‘const class H5::CommonFG’ has no member named ‘createGroup’
 inline H5::Group hdf5_create_group(const H5::CommonFG &x, const std::string &name)  { return x.createGroup(name); }
                                                                                                ^
sp_hdf5.hpp: In function ‘H5::Attribute sp_hdf5::hdf5_open_attribute(const H5::H5Location&, const string&)’:
sp_hdf5.hpp:41:109: error: ‘const class H5::H5Location’ has no member named ‘openAttribute’
 inline H5::Attribute hdf5_open_attribute(const H5::H5Location &x, const std::string &attr_name)  { return x.openAttribute(attr_name); }
                                                                                                             ^
In file included from example_read.cpp:5:0:
sp_hdf5.hpp: In function ‘bool sp_hdf5::hdf5_attribute_exists(const H5::H5Location&, const string&)’:
sp_hdf5.hpp:43:102: error: ‘const class H5::H5Location’ has no member named ‘attrExists’
 inline bool hdf5_attribute_exists(const H5::H5Location &x, const std::string &attr_name)  { return x.attrExists(attr_name); }
                                                                                                      ^
sp_hdf5.hpp: In function ‘H5::DataSet sp_hdf5::hdf5_open_dataset(const H5::CommonFG&, const string&)’:
sp_hdf5.hpp:69:105: error: ‘const class H5::CommonFG’ has no member named ‘openDataSet’
 inline H5::DataSet hdf5_open_dataset(const H5::CommonFG &x, const std::string &dataset_name) { return x.openDataSet(dataset_name); }
                                                                                                         ^
In file included from sp_hdf5.hpp:103:0,
                 from example_read.cpp:5:
sp_hdf5_implementation.hpp: In function ‘std::vector<long long unsigned int> sp_hdf5::hdf5_get_attribute_shape(const H5::H5Location&, const string&)’:
sp_hdf5_implementation.hpp:90:29: error: ‘const class H5::H5Location’ has no member named ‘openAttribute’
     return hdf5_get_shape(x.openAttribute(attr_name));
                             ^
sp_hdf5_implementation.hpp: In function ‘std::unordered_set<std::__cxx11::basic_string<char> > sp_hdf5::hdf5_get_attribute_names(const H5::H5Location&)’:
sp_hdf5_implementation.hpp:104:17: error: ‘class H5::H5Location’ has no member named ‘iterateAttrs’
     int ret = y.iterateAttrs(_attr_enumerate, NULL, &s);
                 ^
In file included from sp_hdf5.hpp:103:0,
                 from example_read.cpp:5:
sp_hdf5_implementation.hpp: In function ‘T sp_hdf5::hdf5_read_attribute(const H5::H5Location&, const string&)’:
sp_hdf5_implementation.hpp:178:38: error: ‘const class H5::H5Location’ has no member named ‘openAttribute’
     return hdf5_read_attribute<T> (x.openAttribute(attr_name));
                                      ^
sp_hdf5_implementation.hpp: In function ‘std::vector<T> sp_hdf5::hdf5_read_attribute(const H5::H5Location&, const string&, const std::vector<long long unsigned int>&)’:
sp_hdf5_implementation.hpp:184:38: error: ‘const class H5::H5Location’ has no member named ‘openAttribute’
     return hdf5_read_attribute<T> (x.openAttribute(attr_name), expected_shape);
                                      ^
sp_hdf5_implementation.hpp: In function ‘void sp_hdf5::hdf5_read_attribute(const H5::H5Location&, const string&, const T*, const std::vector<long long unsigned int>&)’:
sp_hdf5_implementation.hpp:190:27: error: ‘const class H5::H5Location’ has no member named ‘openAttribute’
     hdf5_read_attribute(x.openAttribute(attr_name), data, expected_shape);
                           ^
sp_hdf5_implementation.hpp: In function ‘void sp_hdf5::hdf5_write_attribute(const H5::H5Location&, const string&, const T&)’:
sp_hdf5_implementation.hpp:198:25: error: ‘const class H5::H5Location’ has no member named ‘createAttribute’
     H5::Attribute a = x.createAttribute(attr_name, hdf5_type<T> (), attrspace);
                         ^
sp_hdf5_implementation.hpp: In function ‘void sp_hdf5::hdf5_write_attribute(const H5::H5Location&, const string&, const T&) [with T = std::__cxx11::basic_string<char>; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
sp_hdf5_implementation.hpp:207:25: error: ‘const class H5::H5Location’ has no member named ‘createAttribute’
     H5::Attribute a = x.createAttribute(attr_name, strtype, attrspace);
                         ^
sp_hdf5_implementation.hpp: In function ‘void sp_hdf5::hdf5_write_attribute(const H5::H5Location&, const string&, const T*, const std::vector<long long unsigned int>&)’:
sp_hdf5_implementation.hpp:218:25: error: ‘const class H5::H5Location’ has no member named ‘createAttribute’
     H5::Attribute a = x.createAttribute(attr_name, hdf5_type<T>(), attrspace);
                         ^
sp_hdf5_implementation.hpp: In function ‘void sp_hdf5::hdf5_write_attribute(const H5::H5Location&, const string&, const T*, const std::vector<long long unsigned int>&) [with T = std::__cxx11::basic_string<char>; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
sp_hdf5_implementation.hpp:236:25: error: ‘const class H5::H5Location’ has no member named ‘createAttribute’
     H5::Attribute a = x.createAttribute(attr_name, strtype, attrspace);
                         ^
sp_hdf5_implementation.hpp: In function ‘void sp_hdf5::hdf5_write_attribute(const H5::H5Location&, const string&, const std::vector<T>&)’:
sp_hdf5_implementation.hpp:247:25: error: ‘const class H5::H5Location’ has no member named ‘createAttribute’
     H5::Attribute a = x.createAttribute(attr_name, hdf5_type<T>(), attrspace);
                         ^
sp_hdf5_implementation.hpp: In function ‘std::vector<long long unsigned int> sp_hdf5::hdf5_get_dataset_shape(const H5::CommonFG&, const string&)’:
sp_hdf5_implementation.hpp:278:29: error: ‘const class H5::CommonFG’ has no member named ‘openDataSet’
     return hdf5_get_shape(f.openDataSet(dataset_name));
                             ^
sp_hdf5_implementation.hpp: In function ‘void sp_hdf5::hdf5_read_dataset(const H5::CommonFG&, const string&, T*, const std::vector<long long unsigned int>&)’:
sp_hdf5_implementation.hpp:323:25: error: ‘const class H5::CommonFG’ has no member named ‘openDataSet’
     hdf5_read_dataset(f.openDataSet(dataset_name), out, expected_shape);
                         ^
sp_hdf5_implementation.hpp: In function ‘std::vector<T> sp_hdf5::hdf5_read_dataset(const H5::CommonFG&, const string&, const std::vector<long long unsigned int>&)’:
sp_hdf5_implementation.hpp:329:36: error: ‘const class H5::CommonFG’ has no member named ‘openDataSet’
     return hdf5_read_dataset<T> (f.openDataSet(dataset_name), expected_shape);
                                    ^
sp_hdf5_implementation.hpp: In function ‘void sp_hdf5::hdf5_write_dataset(const H5::CommonFG&, const string&, const T*, const std::vector<long long unsigned int>&)’:
sp_hdf5_implementation.hpp:336:29: error: ‘const class H5::CommonFG’ has no member named ‘createDataSet’
     H5::DataSet dataset = f.createDataSet(dataset_name, hdf5_type<T>(), dataspace);
                             ^
sp_hdf5_implementation.hpp: In constructor ‘sp_hdf5::hdf5_extendable_dataset<T>::hdf5_extendable_dataset(const H5::CommonFG&, const string&, const std::vector<long long unsigned int>&, int)’:
sp_hdf5_implementation.hpp:383:23: error: ‘const class H5::CommonFG’ has no member named ‘createDataSet’
     this->dataset = x.createDataSet(dataset_name, hdf5_type<T>(), data_space, prop_list);
                       ^

I am using version 1.10 of the hdf5 library, with no others installed. I looked inside H5Cpp.h and H5Object.h, and those attributes are indeed there.

Cheers,
Miles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.