delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/04/00:32:32

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=bCdc0Z6wgVxh5puwr1ZDp8Z1GQgY/
W6po2xzd4kfIwVmoUyW75r0XtORviQbBNmm+u5ievBc4cG8SnVlSQ15zrVPh+JIp
GGsSxwAVuTNd5QlElkPezaejRL71VyHRET4VU+KtIDGpI2TBLZbv3yUA7STxbBxU
2hca5K+vUIvRuc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=sFudrNAFZNNhA+MarB0c1PqRIuA=; b=hQy
yrEMx4sy7j798kyeGvosL+bul89MY7GZ+ENsU/d+2mToy68+H+cPja0x7aTpmcG0
YLuAoq3u6LAjcOAFIqxMkQGQ+NqHxdwCqrr8Fq4BC6jaD2cWVF8iQF1rabkpNfub
ikdtavITm8Q8j65Qhh9sQ00bjNNybHQ0mfeN9sdQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.2 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2
X-HELO: mx1.securemx.biz
From: Mark Hadfield <Mark DOT Hadfield AT niwa DOT co DOT nz>
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: RE: Incorrect module file format in Fortran netCDF package
Date: Fri, 4 Oct 2013 04:32:10 +0000
Message-ID: <A4BDD8E3859F92478F09D5AACD6D79C0956EF060@welwexmb01.niwa.local>
References: <A4BDD8E3859F92478F09D5AACD6D79C0956EEFB9 AT welwexmb01 DOT niwa DOT local>
In-Reply-To: <A4BDD8E3859F92478F09D5AACD6D79C0956EEFB9@welwexmb01.niwa.local>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r944WUpq028146

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019