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

octave 4.0 hdf5 support #459

Closed
opoplawski opened this issue Jul 8, 2015 · 1 comment
Closed

octave 4.0 hdf5 support #459

opoplawski opened this issue Jul 8, 2015 · 1 comment

Comments

@opoplawski
Copy link
Contributor

WIth octave 4.0.0 with hdf5 support I get:

/builddir/build/BUILD/plplot-5.11.0/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1638:18: error: 'hid_t' has not been declared
       save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats) {
                  ^

swig source is:

#if defined (HAVE_HDF5)
    virtual bool
      save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats) {
      return true;
    }

This now appears to be caused by the update to octave 4.0.0. With 3.8.2:

/usr/include/octave-3.8.2/octave/ov.h:#include "oct-hdf5.h"
/usr/include/octave-3.8.2/octave/oct-hdf5.h:#include <hdf5.h>

so ov.h included <hdf5.h>. But now:

/usr/include/octave-4.0.0/octave/oct-hdf5.h:#include <hdf5.h>
/usr/include/octave-4.0.0/octave/ls-hdf5.h:#include "oct-hdf5.h"

only ls-hdf5.h or oct-hdf5.h will bring in <hdf5.h>.

Also, octave's definition of save_hdf5 has changed from:

bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats)

to

bool save_hdf5 (octave_hdf5_id loc_id, const char *name, bool save_as_floats);

So it looks like Lib/octave/octrun.swg needs to get updated to handle that?

@ojwb
Copy link
Member

ojwb commented Sep 1, 2015

Looks like this was fixed by PR #460, so closing. If not, please reopen.

@ojwb ojwb closed this as completed Sep 1, 2015
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