HDF5库错误 [英] HDF5 Library error

查看:386
本文介绍了HDF5库错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下

1)VS 2010 C ++ 2)调试Win 32 3)从这里开始的图书馆

1) VS 2010 C++ 2) Debug Win 32 3) The library from here

http://www.hdfgroup.org/HDF5/release/obtain5.html

基本上,我下载了Windows(32位)编译器:CMake VS 2010 C,C ++,IVF 12,RWDI并安装了它.我试图在我的C ++应用程序中包含示例代码,然后遇到以下问题

Basically I downloaded Windows (32-bit) Compilers: CMake VS 2010 C, C++, IVF 12, RWDI and installed it. I tried to include a sample code in my C++ application and ran into the following

***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

推荐答案

您已经安装了两个版本的HDF5,并且要使用一个版本(1.8.12)进行编译,但要与另一个版本(J:/dev/opt/hdf5-1.8.11中的1.8.11)进行链接. ,或者更有可能是您安装了HDF5,编译了程序,然后稍后更新了HDF5,并且没有清除项目中的某些目标文件...

You either have two versions of HDF5 installed and you are compiling with one (1.8.12) but linking with the other (1.8.11 in J:/dev/opt/hdf5-1.8.11), or more likely you installed HDF5, compiled your program, then updated HDF5 later on and didn't clean some object files in your project…

首先尝试再次清除所有构建程序,这可能就足够了.

First try to Clean All and Build your program again, it might be enough.

如果这不起作用,请找出您是否同时安装了两个版本,如果是这种情况,请删除其中一个版本,全部清除 Build 您的程序.

If this doesn't work, find out if you have two versions installed at the same time and remove one of them if this is the case, Clean All and Build your program.

如果这不起作用,请删除系统上的所有HDF5内容,然后重新安装HDF5库,全部清除 Build 您的程序.

If this doesn't work, remove all HDF5 stuff on your system and reinstall the HDF5 library, Clean All and Build your program.

这篇关于HDF5库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆