HDF5 - 包含在更大的C ++项目中的问题

时间:2014-04-10 14:50:31

标签: c++ include hdf5

我遇到了一些问题,包括在较大的C ++项目中打开和读取现有HDF5文件中的数据的脚本。 我可以包含库和标头,以便不再出现错误消息: "未定义参考"当试图链接所有文件时。

现在我能够构建我的项目(使用eclipse),但是当我开始使用现有的hdf5文件时

const H5std_string FILE_NAME_ALL ("RADAR.h5");

 /*
* Open the specified file
*/
H5File *file = new H5File( FILE_NAME_ALL, H5F_ACC_RDONLY );

我收到以下错误:

HDF5-DIAG: Error detected in HDF5 (1.8.11) thread 0:
  #000: ../../src/H5F.c line 1582 in H5Fopen(): unable to open file
    major: File accessibilty
    minor: Unable to open file
  #001: ../../src/H5F.c line 1271 in H5F_open(): unable to open file: time = Thu Apr 10 16:43:53 2014
, name = 'RADAR.h5', tent_flags = 0
    major: File accessibilty
    minor: Unable to open file
  #002: ../../src/H5FD.c line 987 in H5FD_open(): open failed
    major: Virtual File Layer
    minor: Unable to initialize object
  #003: ../../src/H5FDsec2.c line 343 in H5FD_sec2_open(): unable to open file: name = 'RADAR.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0
    major: File accessibilty
    minor: Unable to open file

你知道这里出了什么问题吗?

0 个答案:

没有答案