When using the netCDF DLL, you should set the preprocessor flag DLL_NETCDF. Do this in the properties window for your project in visual studio.
To use the netcdf.dll:
1. Place these in your include directory: netcdf.h C include file netcdf.inc Fortran include file
2a. To use the Dynamic Library (shared) version of the netcdf library: Place these in a directory that's in your PATH: netcdf.dll library dll ncgen.exe uses the dll ncdump.exe uses the dll
Place this in a library directory to link against: netcdf.lib library
2b. Alternatively, to use a static version of the library
Place this in a library directory to link against: netcdfs.lib library
Place these in a directory that's in your PATH: ncgens.exe statically linked (no DLL needed) ncdumps.exe statically linked (no DLL needed)