1. download and install the HDF 32bit and 64bit system on windows (location: http://www.hdfgroup.org/HDF5/release/obtain5.html)
- 32 bit HDF will install at : C:\Program Files (x86)\HDF Group\HDF5
- 64 bit HDF will install at: C:\Program Files\HDF Group\HDF5
2. download the netcdf 4.1.1 for windows package at: ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf-4.1.1-win32-src.zip
- The visual studio solution are in “\win32\NET”
3. We only interested the C and Fortran library.
- built C library, set the project properties of “netcdf”
- 32 bit:
- include : c:\Program Files (x86)\HDF Group\HDF5\1.8.8\include\
- lib:c:\Program Files (x86)\HDF Group\HDF5\1.8.8\lib\
- linked library: hdf5.lib hdf5_hl.lib libzlib.lib libszip.lib
- set runtime library as:Multi-threaded DLL (/MD)
- built
- 64 bit:
- include : c:\Program Files\HDF Group\HDF5\1.8.8\include\
- lib:c:\Program Files\HDF Group\HDF5\1.8.8\lib\
- linked library: hdf5.lib hdf5_hl.lib libzlib.lib libszip.lib
- set runtime library as:Multi-threaded DLL (/MD)
- built
- For fortran library :
- Create library fortran project name: netcdf_f90
- Copy all the f90 source code in “netcdf-4.1.1\f90” to the project folder.
- add “netcdf4.f90” and “typeSizes.f90”
- 32bit: build
- 64bit: build
- the library “netcdf_f90.lib will be generate” and include two mod file “netcdf.mod” and “typesizes.mod”
4. Finished.
Project saved location: skydriver
1. netcdf 4.1.1 source code and the c libary and fortran library;
2. the build include file and library.