When I want to build project of ncrcat (ncra.c), It results in fatal error: "fatal error C1083: Cannot open include file: 'netcdf.h': No such file or directory". I searched all nco folders and found only a 'netcdf.h.3.6' file within 'doc' folder. what should I do?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I want to build project of ncrcat (ncra.c), It results in fatal error: "fatal error C1083: Cannot open include file: 'netcdf.h': No such file or directory". I searched all nco folders and found only a 'netcdf.h.3.6' file within 'doc' folder. what should I do?
Instructions to build with Visual Studio are here
http://nco.sourceforge.net/nco_qt_msvc.shtml
In your case, you need to find the location of the netcdf library on your Windows machine, and the location of a file called 'netcdf.h' in it
Then you need to define this environment variable in Windows
HEADER_NETCDF
For example if 'netcdf.h' is located in
K:\netcdf-4.3.2\include
then define HEADER_NETCDF as 'K:\netcdf-4.3.2\include' (note that the name of the file 'netcdf.h' is not part of the environment variable name)
-Pedro