This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Incorrect module file format in Fortran netCDF package
- From: Mark Hadfield <Mark dot Hadfield at niwa dot co dot nz>
- To: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Fri, 4 Oct 2013 04:32:10 +0000
- Subject: RE: Incorrect module file format in Fortran netCDF package
- Authentication-results: sourceware.org; auth=none
- References: <A4BDD8E3859F92478F09D5AACD6D79C0956EEFB9 at welwexmb01 dot niwa dot local>
There's a second issue. In the output of "/usr/bin/nf-config --all" (below) a -no-undefined option is printed. This is not a valid option for gfortran.
With these two issues fixed I can compile and link Fortran 90 programs that use the netCDF Fortran interface.
---------------------------------------------
$ /usr/bin/nf-config --all
This netCDF-Fortran 4.2 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/include
--libs -> -L/usr/lib -no-undefined -lnetcdf -lnetcdf
--fc -> gfortran
--fflags -> -g -O2 -pipe -I/usr/include
--flibs -> -L/usr/lib -lnetcdff -no-undefined -lnetcdf -lnetcdf
--has-f90 -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--prefix -> /usr
--includedir-> /usr/include
--version -> netCDF-Fortran 4.2
Dr Mark Hadfield
Scientist, Marine Physics
NIWA
301 Evans Bay Parade
Private Bag 14 901
Wellington, New Zealand
Tel: +64 4 386 0363
www.niwa.co.nz
NIWA - Enhancing the benefit of New Zealand's natural resources.
--
Please consider the environment before printing this email.
NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple