我使用的是2008 (HDF5 v1.8.12),每个函数(一个H5std_string作为参数)都有问题。
甚至在我运行示例文件"create.cpp“https://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/c++/examples/create.cpp时也是如此。
这给出了错误:....\H5F.c第1466行,在H5Fcreate():无效文件名中,当我用FILE_NAME.c_str()替换FILE_NAME和用DATASET_NAME.c_str()替换DATASET_NAME时,错误是固定的。
类似地,我在运行时会出现错误:
H5::Attribute attr = group.openAttribute("type");
H5std_string attr_content;
attr.read(attr.getStrType(), attr_content);但是,下面的代码工作
char buf[1024];
H5::Attribute attr = group.openAttribute("type");
attr.read(attr_date.getStrType(), buf);发布于 2016-09-02 13:22:27
在Visual中切换到释放模式时,下面显示的错误消失了。
https://stackoverflow.com/questions/33122928
复制相似问题