You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visual Studio 2015 fails to build netcdf. Part of this is because VS2015 now uses snprintf, which was previously defined. Not the source of this bug, but some background is provided:
Using hdf5 1.8.16, something in their cmake configuration is "slippery"; cmake detects the hdf5 library when configuring netcdf to be built with visual studio, but it is not added to the dependency list. I'm trying to sort this out.
Trying to build hdf5 1.8.15 with Visual Studio 2015 fails with some odd errors that I'm not going to debug.
Using hdf5 1.8.15 built with Visual Studio 2013 works just fine; cmake detects and uses them as expected when configuring and building netcdf.
WardF
changed the title
NetCDF-C doesn't compile under Visual Studio 2015
NetCDF-C doesn't compile under Visual Studio 2015 when using hdf5 1.8.16
Jan 7, 2016
In Windows, using Visual Studio 2013 or 2015, and configuring netcdf with cmake, the following behavior is observed when invoking FIND_PACKAGE(HDF5 COMPONENTS C HL NO_MODULE REQUIRED):
HDF5 1.8.15: The import libraries for hdf5.dll and hdf5_hl.dll are captured in HDF5_LIBRARIES.
HDF5 1.8.16: The import libraries are _not_ captured in HDF5_LIBRARIES, nor in any of the other HDF5_ definition that I can identify.
This happens even when H5_BUILT_AS_DYNAMIC_LIB is defined.
Visual Studio 2015 fails to build netcdf. Part of this is because VS2015 now uses snprintf, which was previously defined. Not the source of this bug, but some background is provided:
There is also a weird linking error that I haven't investigated yet.
Addressing this on branch
VS14
.The text was updated successfully, but these errors were encountered: