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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=Ns AIlpknEe9BGrmySgugXdOYb7kmkkZLBK4UEnOnq/jk7qrYpLJoIXzje+hhQJYrAz xI9ErceMtcWA2240xOiM5LTIeW1FpdwXLGMBbBWm95VlMPz1vxnhL/flIdWUQ+iy lGkwchoITGiWF0/mdAjeMlrG0MNbHUtDcw9BQhaZI= 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=gm/zQFDs AnESjAgzBxDdEXBo/P8=; b=fD27xxw1a7tcucQFDQknGh7lvZjQdWoP1NnHF8QW 5BUvfTu18eeCzptuSzf//K+0jQXT2sXhzqueMOkfty80MoUybBBabkNa0Tba2G31 o6Gz8tgrmM0lMKwbWVIrH2fefg2wTT7ZUUdUa1JIIIj+Fev+2452TZizc5WURSJL RpU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f171.google.com MIME-Version: 1.0 X-Received: by 10.180.228.72 with SMTP id sg8mr18897925wic.48.1416906406119; Tue, 25 Nov 2014 01:06:46 -0800 (PST) In-Reply-To: References: Date: Tue, 25 Nov 2014 10:06:46 +0100 Message-ID: Subject: Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library? From: Csaba Raduly To: cygwin list Content-Type: text/plain; charset=ISO-8859-1 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