On Wednesday, July 5, 2017 at 3:57:27 AM UTC-5,
shalu....@gmail.com wrote:
> I am using Plato IDE, Silverfrost to run Fortran 95 on Windows, I have to run a code which uses NetCF library. How should I do that? When I tried running a code it gave me error 404. saying "cannot find definition for module netcdf". How can I resolve this issue?
As others have suggested the first thing you should do is go to
the netCDF web site and find a pre-built version. However, this
will most likely be for CYGWIN or MINW not pure native Windows.
As to using the Silverfrost compiler. I doubt it supports the Fortran 2003 C-Interop facility.
In that case, the netCDF build scripts should default to using the old cfortran.h macros
to create C based interfaces to the underlying netCDF-C code. The latest versions of
netCDF Fortran will use my F2003 interop interfaces if it detects a F2003 compliant (
at least supports C-interop) compiler. All of the netCDF Fortran routines are in a sense
just wrappers and interfaces to calls to the netCDF-C code. You issue with the module
files looks to me like your IDE does not have the correct paths to were the
files are stored. Again, as far as I know, the only successful builds of netCDF-Fortran on
Windows have been under CYGWIN or MINW.
Finally, I encourage you to submit a problem report to the netCDF support site
http://support...@unidata.ucar.edu. They may be able to help but I doubt that the Silverfrost
compiler is one they have access to so I think they will as others have suggest
you try gfortran.
RW