Using std:: string in hdf5 creates unreadable output

╄→гoц情女王★ 提交于 2019-12-05 21:35:26
sorry_I_wont

I also had the same problem, and fixed it by changing all my std::string or h5std_string to literally:

5File file("myFile.h5", H5F_ACC_TRUNC);

Or use string.c_str() to change the string to const char.

I had exactly the same problem. The solution was, that I was in Debug-Mode in Visual Studio, whereas the libraries I linked against were build in Release-Mode. When I switched in Visual Studio to Release-Mode, the above error disappeared.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!