[gdal-dev] HDF5 and missing externals

Sjur Kolberg Sjur.A.Kolberg at sintef.no
Fri Oct 30 06:38:27 EDT 2009



Hello, list :-)
 
I have problems with linking in HDF5 support in GDAL 1.6.2 on WIN XP PRO SP 2 using Visual Studio 2008 SP 1.

The link errors I get are:
1>Linking...
1> Creating library ..\..\..\deblib\gdal16d-vc9.lib and object ..\..\..\deblib\gdal16d-vc9.exp
1>hdf5dataset.obj : error LNK2001: unresolved external symbol _H5T_NATIVE_ULLONG_g
... and similar errors for 11 other unresolved externals of the _H5T_NATIVE_xxxxx_g type.

I am using the solution and project files from http://vterrain.org/Distrib/gdal.html (and have absolutely no knowledge of makefiles, configure etc).
I've downloaded and built HDF5 1.8.3 (+SZIP 2.1 (no encoding) and ZLIB 1.2).
I have done the same with HDF42r4, NetCDF-4.0.1, libpng-1.2.40 libjpeg-7 libexpat-2.0.1
I also include the GRIB and IDRISI drivers without problems.

No problems finding the HDF5 include files.
No problem finding hdf5ddll.lib, by renaming verified that VS reads the right one.
DUMPBIN /EXPORTS on hdf5ddll.lib shows that _H5T_NATIVE_ULLONG_g is indeed exported.
I had approximately the same setup building fine using HDF5 1.8.1, GDAL 1.6.0beta1 under VS2005.

This might be (related to) ticket #3184 which explicitly specifies GDAL 1.6.2. 
- Has anyone succeeded to get this working, or know what I have to downgrade to get this built?


Sjur Kolberg
SINTEF Energiforskning A/S
Sem Sælands vei 11
7465 Trondheim
tlf. 73 59 72 78
fax  73 59 72 50 



More information about the gdal-dev mailing list