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=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 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=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: References: Date: Tue, 25 Nov 2014 09:46:31 -0800 Message-ID: Subject: Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library? From: John Kim To: cygwin AT cygwin DOT 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 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