X-Recipient: archive-cygwin@delorie.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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=IJ
	wKNqE3JoW7b+1ah2DF+gyXprNZsS9UqOrhanjAORyXqxhJxwYCO8HZN2H7naGNcL
	EDEJRc/8DI7o6hDKLIT9cqHXKd+bYnGzbgmYphl6r6yctyiRUra5XpDQBbfTWV/i
	4fON0vMeGO+VoGJn9nFU3BTgL63wjpgurOQkk6LwQ=
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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=LvfqPOra
	xcX1va5X1bUqhAKOzSM=; b=f32s2rNtjNb1fkBrymIC5KUKzA0yYXsy7G7STC9g
	hgu0JOfjKlqqEIek9rsOTbF/CDpuONhyQri5+9eWfuwIj0OWD+TY0ixoOv4cftEU
	rYMU7NfUq7eNYyXzE0eqBiOlLJ1TzLSmX+RP/lgZ5TwOIFqmAzpRo56CtdozTt3r
	Dx8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: mail-lb0-f178.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:mime-version:sender:in-reply-to:references:date         :message-id:subject:from:to:content-type;        bh=TI0Jfm1OVLvk9GL77otQHK+M0OSRvNg9mG/6nPOmRpo=;        b=c6CxWnI/r1K6k8VKnkE+sYCRPKk91fX/w3ADSXBOqbaEeESbIOBmanZdLSEb+bg9h5         XhHyykvC5RLy7t5BMz7y+Y6EgBYXl3dx5qqpkkdDikNXueTGb3WkFId6A1w5CtZNSADC         TZSJemItwG/O/tlDTXcldKcBdaZQgCoYIj9plGcJkOzjDbnRC1gT8O4Ybdvy0i69ccqg         9TSJmGteTwS4JF/zUZhOOnvWYa0lATes258BpIVVefLFSSr7CrDakSIs2QA/rLmwuUqK         pJmuF4ePsj/yozKFlYg16vCWDpdjr2TeukyWBFj9zAJYjkCkK4VpIsW/yewjGs3pClo0         blUg==
X-Gm-Message-State: ALoCoQllzwGA3TnSFcZ8FCEXKQZa2zdIDm0lylRCvkeQF7AbXNH58pO/C7nhF7Jh3bxuHb8ebSHk
MIME-Version: 1.0
X-Received: by 10.112.139.196 with SMTP id ra4mr28275087lbb.95.1416937591658; Tue, 25 Nov 2014 09:46:31 -0800 (PST)
In-Reply-To: <CAEhDDbBXjY454UE=XfR9_R8fM3WgNUZf+A_g71QN7afCu6F4gQ@mail.gmail.com>
References: <CAGeTGVhs4uQQdzKe+bi6AvNYFQrVa5ZPWPbzg4=nUDMBju+DFA@mail.gmail.com>	<CAEhDDbBXjY454UE=XfR9_R8fM3WgNUZf+A_g71QN7afCu6F4gQ@mail.gmail.com>
Date: Tue, 25 Nov 2014 09:46:31 -0800
Message-ID: <CAGeTGVjszO_VeG+wP5Uk7hpUczxm13jmmf+Vzgeoj__0M7SNPg@mail.gmail.com>
Subject: Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?
From: John Kim <jbkim@fs.fed.us>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

Marco & Csaba --

I installed libnetcdf-devel, and linked against libnetcdf.dll.a (in
/usr/lib), and it linked correctly!

Thank you both.


-John



On Tue, Nov 25, 2014 at 1:06 AM, Csaba Raduly <rcsaba@gmail.com> wrote:
> Hi John,
>
> On Mon, Nov 24, 2014 at 10:28 PM, John Kim  wrote:
>> Hi,
>>
>> I have a C program that uses a custom Fortran library and the netCDF
>> API. I'm trying to link the C and Fortran object files with the Cygwin
>> netCDF 4.3.1.1. library, like this:
>>
>>    gfortran *.o libfortran.a -L"/cygdrive/c/Program Files (x86)/netCDF
>> 4.3.1.1/lib" -lnetcdf
>
> That sounds like you are trying to link against a non-Cygwin netCDF.
> If the "/cygdrive/c/Program Files (x86)/netCDF 4.3.1.1/lib" contains
> .lib files and not .a files, that is most likely your problem.
>
> Csaba
> --
> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
> The Tao of math: The numbers you can count are not the real numbers.
> Life is complex, with real and imaginary parts.
> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
> "People disagree with me. I just ignore them." -- Linus Torvalds
>
> --
> 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
>

--
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

