我正在使用以下
1)VS 2010 C ++ 2)Debug Win 32 3)这里的图书馆
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
答案 0 :(得分:2)
你要么安装了两个版本的HDF5,要么用一个(1.8.12)进行编译,而是用另一个进行编译(J:/dev/opt/hdf5-1.8.11
中的1.8.11),或者更有可能你安装了HDF5,编译你的程序,然后更新HDF5并且没有清理项目中的某些目标文件...
首先尝试再次全部清除和构建您的程序,这可能已经足够了。
如果这不起作用,请确定您是否同时安装了两个版本,如果是这种情况,请删除其中一个版本,全部清除和构建你的计划。
如果这不起作用,请删除系统上的所有HDF5内容并重新安装HDF5库,全部清除和构建程序。
答案 1 :(得分:0)
我遇到了同样的问题,我使用
解决了这个问题conda install -c anaconda hdf5=1.8.12
我希望这也适合你
答案 2 :(得分:0)
这似乎只出现在Windows机器上使用PyCharm运行应用程序(使用Theano + Keras + Anaconda)时。
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
会抑制它。