<div dir="ltr"><div><div>Hello,<br><br></div>I'm attempting to build GDAL for windows using Visual Studio 2008.<br></div><div>I've included the output of the build failure below.<br><br></div><div>I don't see anything wrong with the linking command (hdf5 library is there).  I've double checked the exported symbols of hdf5.lib and it definitely exports the symbols that gdal complains it can't find.<br><br></div><div>I get this failure on Windows 10 with Visual Studio 2008 and gdal 2.0.0 through 2.1.0 RC4.  I suspect it might have something to do with HDF 1.8.16 (since the problem only manifested itself since updating HDF5).<br><br><br></div><div>Searching this mailing list, I couldn't find similar failures.  Any help would be appreciated.<br><br></div><div>Thanks,<br></div><div>Ryan<br></div><div><br></div>The compile fails with the following output:<br>        cd ..<br>        if exist gdal.lib del gdal.lib<br>        lib /nologo /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib gnm\*.obj gnm\gnm_frmts\o\*.obj   apps\commonutils.obj apps\gdalinfo_lib.obj apps\gdal_translate_lib.obj apps\gdalwarp_lib.obj apps\ogr2ogr_lib.obj  apps\gdaldem_lib.obj apps\nearblack_lib.obj apps\gdal_grid_lib.obj apps\gdal_rasterize_lib.obj apps\gdalbuildvrt_lib.obj<br>ogrsf_frmts.lib(ogrjmllayer.obj) : warning LNK4221: no public symbols found; archive member will be inaccessible<br>ogr.lib(ograpispy.obj) : warning LNK4221: no public symbols found; archive member will be inaccessible<br>nitf_gcprpc.obj : warning LNK4221: no public symbols found; archive member will be inaccessible<br>cpl_recode_iconv.obj : warning LNK4221: no public symbols found; archive member will be inaccessible<br>        link /nologo /dll /INCLUDE:OSRValidate  /INCLUDE:OPTGetProjectionMethods  /INCLUDE:OGR_G_GetPointCount  /INCLUDE:OGRRegisterAll /INCLUDE:GDALSimpleImageWarp  /INCLUDE:GDALReprojectImage  /INCLUDE:GDALComputeMedianCutPCT  /INCLUDE:GDALDitherRGB2PCT  /INCLUDE:OCTNewCoordinateTransformation port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib gnm\*.obj gnm\gnm_frmts\o\*.obj   apps\commonutils.obj apps\gdalinfo_lib.obj apps\gdal_translate_lib.obj apps\gdalwarp_lib.obj apps\ogr2ogr_lib.obj  apps\gdaldem_lib.obj apps\nearblack_lib.obj apps\gdal_grid_lib.obj apps\gdal_rasterize_lib.obj apps\gdalbuildvrt_lib.obj   C:\Users\builder\Miniconda2\envs\_build\Library\lib\xerces-c_3.lib      C:\Users\builder\Miniconda2\envs\_build\Library\lib\hdf.lib C:\Users\builder\Miniconda2\envs\_build\Library\lib\mfhdf.lib C:\Users\builder\Miniconda2\envs\_build\Library\lib\xdr.lib      C:\Users\builder\Miniconda2\envs\_build\Library\lib\netcdf.lib         C:\Users\builder\Miniconda2\envs\_build\Library\lib\geos_c.lib C:\Users\builder\Miniconda2\envs\_build\Library\lib\hdf5.lib C:\Users\builder\Miniconda2\envs\_build\Library\lib\libkea.lib           odbc32.lib odbccp32.lib user32.lib                        ws2_32.lib gcore\Version.res  /out:gdal201.dll /implib:gdal_i.lib<br>   Creating library gdal_i.lib and object gdal_i.exp<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_DOUBLE_g referenced in function "bool __cdecl GH5_FetchAttribute(int,char const *,double &,bool)" (?GH5_FetchAttribute@@YA_NHPEBDAEAN_N@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_DOUBLE_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_FLOAT_g referenced in function "bool __cdecl GH5_FetchAttribute(int,char const *,double &,bool)" (?GH5_FetchAttribute@@YA_NHPEBDAEAN_N@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_FLOAT_g<br>hdf5imagedataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_FLOAT_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_INT_g referenced in function "bool __cdecl GH5_FetchAttribute(int,char const *,double &,bool)" (?GH5_FetchAttribute@@YA_NHPEBDAEAN_N@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_INT_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_ULLONG_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_ULLONG_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_LLONG_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_LLONG_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_ULONG_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_ULONG_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_LONG_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_LONG_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_UINT_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_UINT_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_USHORT_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_USHORT_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_SHORT_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_SHORT_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_UCHAR_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_UCHAR_g<br>gh5_convenience.obj : error LNK2019: unresolved external symbol H5T_NATIVE_SCHAR_g referenced in function "enum GDALDataType __cdecl GH5_GetDataType(int)" (?GH5_GetDataType@@YA?AW4GDALDataType@@H@Z)<br>hdf5dataset.obj : error LNK2001: unresolved external symbol H5T_NATIVE_SCHAR_g<br>gdal201.dll : fatal error LNK1120: 12 unresolved externals<br>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.EXE"' : return code '0x460'<br>Stop.<br><br><br></div>