Any help is much appreciated. I'm having link errors when trying to use HDF5 libraries installed using vcpkg with Visual Studio 2019 on Windows 10.
I installed HDF5 1.12.0 on Windows 10 using vcpkg:
PowerShell: .\vcpkg install hdf5 hdf5:x64-windows
I then attempted to use Visual Studio 2019 to build my project that uses HDF5, but I keep getting the following LNK2001 errors.
- unresolved external symbol H5T_IEEE_F64BE_g
- unresolved external symbol H5T_STD_I64BE_g
- unresolved external symbol H5T_C_S1_g
- unresolved external symbol H5T_NATIVE_INT_g
- unresolved external symbol H5T_NATIVE_DOUBLE_g
I tried to solve this by directly adding the additional library directories that are under the vcpkg/packages/ for HDF5, SZIP, and ZLIB, that were automatically installed as part of the HDF5 installation step given previously, and I also added the library files to the additional dependencies in the order prescribed by the HDF5 documentation:
- hdf5_hl.lib
- hdf5.lib
- szip.lib
- zlib.lib
But I still have the unresolved external symbol errors.