Calixte, how are you? It's the latter. The documentation is not very precise
on this,
but HDF5 links aren't HDF5 objects. See section '1.2.2 Group', Figures 5 and
6 in the HDF5 User Guide.
It's the latter. The documentation is not very precise
on this,
but HDF5 links aren't HDF5 objects. See section '1.2.2 Group', Figures 5 and
6 in the HDF5 User Guide.
I finally found this page and I understood my error.
My misunderstanding was coming from the fact that the following code is working:
for (; i < info.nlinks; i++)
{
H5O_info_t objinfo;
int type = H5Gget_objtype_by_idx(root, i);
printf("type=%d\n", type);
}
when there are only dangling links (found in the test file tslink.h5). And the doc about H5Gget_objtype_by_idx just said that this function is deprecated in favor of H5Oget_info_by_idx.
The H5L interface has several functions for inspecting HDF5 links.
Best, G.
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]
On Behalf Of Calixte Denizet
Sent: Wednesday, September 12, 2012 2:19 PM
To: hdf-forum@hdfgroup.org
Subject: [Hdf-forum] Error with H5Oget_info_by_idx on soft links
Hi,
I don't understand why the following code returns an error (hdf5 version is
1.8.8 with Debian testing):