Skip to content

compilation error  #5

@bcrabbe

Description

@bcrabbe

running 'make' produces an error:

sphere@WP2:~/gait_cnn/datasets/scripts/scripts/hdf5oct/hdf5oct$ make
CXX=h5c++ mkoctfile -g -c h5read.cc
In file included from h5read.cc:54:0:
h5read.h:72:22: error: ISO C++ forbids initialisation of member ‘h5_dims’ [-fpermissive]
h5read.h:72:22: error: making ‘h5_dims’ static [-fpermissive]
h5read.h:72:22: error: invalid in-class initialisation of static data member of non-integral type ‘hsize_t* {aka long long unsigned int_}’
h5read.h:73:25: error: ISO C++ forbids initialisation of member ‘h5_maxdims’ [-fpermissive]
h5read.h:73:25: error: making ‘h5_maxdims’ static [-fpermissive]
h5read.h:73:25: error: invalid in-class initialisation of static data member of non-integral type ‘hsize_t_ {aka long long unsigned int_}’
h5read.cc: In constructor ‘H5File::H5File(const char_, bool)’:
h5read.cc:516:40: error: invalid conversion from ‘herr_t ()(void*) {aka int ()(void_)}’ to ‘void__’ [-fpermissive]
h5read.cc:516:40: error: too many arguments to function ‘herr_t H5Eget_auto1(herr_t (__)(void_), void*)’
/usr/include/H5Epublic.h:212:15: note: declared here
h5read.cc:518:31: error: too many arguments to function ‘herr_t H5Eset_auto1(H5E_auto1_t, void
)’
/usr/include/H5Epublic.h:216:15: note: declared here
h5read.cc:538:38: error: invalid conversion from ‘H5E_auto1_t {aka int ()(void)}’ to ‘void_’ [-fpermissive]
h5read.cc:538:38: error: too many arguments to function ‘herr_t H5Eset_auto1(H5E_auto1_t, void_)’
/usr/include/H5Epublic.h:216:15: note: declared here
h5read.cc: In destructor ‘H5File::~H5File()’:
h5read.cc:568:7: error: ‘h5_dims’ was not declared in this scope
h5read.cc:573:7: error: ‘h5_maxdims’ was not declared in this scope
h5read.cc: In member function ‘int H5File::open_dset(const char_)’:
h5read.cc:604:49: error: too many arguments to function ‘hid_t H5Dopen1(hid_t, const char_)’
/usr/include/H5Dpublic.h:145:14: note: declared here
h5read.cc:625:3: error: ‘h5_dims’ was not declared in this scope
h5read.cc:626:3: error: ‘h5_maxdims’ was not declared in this scope
h5read.cc: In member function ‘octave_value H5File::read_dset_complete(const char_)’:
h5read.cc:653:19: error: ‘h5_dims’ was not declared in this scope
h5read.cc: In member function ‘octave_value H5File::read_dset_hyperslab(const char_, const Matrix&, const Matrix&, const Matrix&, const Matrix&, int)’:
h5read.cc:727:24: error: ‘h5_dims’ was not declared in this scope
h5read.cc:731:11: error: ‘h5_dims’ was not declared in this scope
h5read.cc: In member function ‘void H5File::write_dset(const char_, octave_value)’:
h5read.cc:915:113: error: too many arguments to function ‘hid_t H5Gcreate1(hid_t, const char_, size_t)’
/usr/include/H5Gpublic.h:147:14: note: declared here
h5read.cc:947:7: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:955:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:961:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:967:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:973:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:979:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:985:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:991:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:997:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:1003:11: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:1011:7: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc:1017:7: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
h5read.cc: In member function ‘void H5File::write_dset_hyperslab(const char_, octave_value, const Matrix&, const Matrix&, const Matrix&, const Matrix&, int)’:
h5read.cc:1089:11: error: ‘h5_maxdims’ was not declared in this scope
h5read.cc:1100:11: error: ‘h5_dims’ was not declared in this scope
h5read.cc:1111:31: error: ‘h5_dims’ was not declared in this scope
h5read.cc: In member function ‘octave_value H5File::read_att(const char_, const char_)’:
h5read.cc:1169:40: error: ‘hdf5_check_attr’ was not declared in this scope
h5read.cc: In member function ‘void H5File::write_att(const char_, const char_, const octave_value&)’:
h5read.cc:1375:62: error: too many arguments to function ‘hid_t H5Acreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Apublic.h:105:16: note: declared here
h5read.cc: In member function ‘void H5File::create_dset(const char_, const Matrix&, const char_, const Matrix&)’:
h5read.cc:1449:58: error: too many arguments to function ‘hid_t H5Dcreate1(hid_t, const char_, hid_t, hid_t, hid_t)’
/usr/include/H5Dpublic.h:143:14: note: declared here
make: *_* [h5read.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions