我正在使用以下方法
( 1) VS 2010 C++ 2)调试赢得32 )
http://www.hdfgroup.org/HDF5/release/obtain5.html
基本上,我下载了Windows (32位)编译器: CMake VS 2010 C,C++,IVF 12,RWDI并安装了它。我尝试在我的C++应用程序中包含一个示例代码,并遇到以下情况
***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.8.12, library is 1.8.11
SUMMARY OF THE HDF5 CONFIGURATION
=================================
General Information:
-------------------
HDF5 Version: 1.8.11
Configured on:
Configured by: Visual Studio 9 2008
Configure mode: CMAKE 2.8.11.2
Host system: Windows-6.1
Uname information: Windows
Byte sex: little-endian
Libraries:
Installation point: J:/dev/opt/hdf5-1.8.11发布于 2014-02-13 15:33:28
您已经安装了两个版本的HDF5,并且正在使用一个版本(1.8.12)进行编译,但是与另一个版本的链接(J:/dev/opt/hdf5-1.8.11中的1.8.11),或者更有可能是安装了HDF5,编译了您的程序,然后在稍后更新了HDF5,并且没有清理项目…中的一些对象文件。
首先,尝试清除所有并重新构建您的程序,这可能就足够了。
如果这不起作用,找出你是否同时安装了两个版本,如果是这样的话,删除其中一个版本,清除所有并构建你的程序。
如果这不起作用,请删除系统上的所有HDF5内容,重新安装HDF5库,清除所有并构建程序。
发布于 2016-12-28 19:24:04
我也有同样的问题,我用
conda install -c anaconda hdf5=1.8.12我希望这对你也有帮助。
发布于 2017-01-23 07:49:57
只有当应用程序(使用Theano+Keras+Anaconda)在Windows中使用PyCharm运行时,才会出现这种情况。
You can, at your own risk, disable this warning by setting the environment variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
设置HDF5_DISABLE_VERSION_CHECK=1会取消它。
https://stackoverflow.com/questions/21738662
复制相似问题