[vtkusers] issue on Visual Studio 2015 vtkNetDCF and external library HDF5 HL

Ben Boeckel ben.boeckel at kitware.com
Mon Jan 1 09:56:18 EST 2018


On Sat, Dec 30, 2017 at 17:59:27 +0000, Waldo Valenzuela wrote:
> I am compiling VTK 8.1 with external HDF5 on Windows, Linux and Mac.
> Linux and Mac no problem, BUT in Windows with Visual Studio 2015, I
> have the following LINK errors when the vtkNetDCF library is compiled:
> 
> libhdf5_hl.lib(H5DS.obj) : error LNK2019: unresolved external symbol H5T_STD_REF_OBJ_g referenced in function H5DS_get_REFLIST_type
> 1>libhdf5_hl.lib(H5LT.obj) : error LNK2019: unresolved external symbol H5T_STD_REF_DSETREG_g referenced in function H5LT_dtype_to_text
> 1>libhdf5_hl.lib(H5LT.obj) : error LNK2019: unresolved external symbol H5T_FORTRAN_S1_g referenced in function H5LT_dtype_to_text
> 1>libhdf5_hl.lib(H5LTparse.obj) : error LNK2001: unresolved external symbol H5T_FORTRAN_S1_g
> 1>libhdf5_hl.lib(H5LT.obj) : error LNK2019: unresolved external symbol H5T_NATIVE_LONG_g referenced in function H5LT_dtype_to_text
> 1>libhdf5_hl.lib(H5LTparse.obj) : error LNK2001: unresolved external symbol H5T_NATIVE_LONG_g
> 1>libhdf5_hl.lib(H5LT.obj) : error LNK2019: unresolved external symbol H5T_NATIVE_ULONG_g referenced in function H5LT_dtype_to_text
> 1>libhdf5_hl.lib(H5LTparse.obj) : error LNK2001: unresolved external symbol H5T_NATIVE_ULONG_g
> 
> Any idea what is this error is about, I have to compile HDF5 with an special option?

The netcdf in VTK right now uses HDF5's 1.6 API, so you can't configure
it with HDF5_ENABLE_DEPRECATED_SYMBOLS=OFF.

Though looking at the error, it seems that libhdf5 is missing some
symbols that libhdf5_hl is expecting to exist. What HDF5 are you
building?

--Ben


More information about the vtkusers mailing list