Menu

Fatal Error in Building Projects By Microsoft Visual C++ 2010

Help
Bateni
2015-08-16
2015-08-16
  • Bateni

    Bateni - 2015-08-16

    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?

     
  • Pedro Vicente

    Pedro Vicente - 2015-08-16

    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

     

Log in to post a comment.

MongoDB Logo MongoDB