This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?
- From: John Kim <jbkim at fs dot fed dot us>
- To: cygwin at cygwin dot com
- Date: Tue, 25 Nov 2014 09:46:31 -0800
- Subject: Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?
- Authentication-results: sourceware.org; auth=none
- References: <CAGeTGVhs4uQQdzKe+bi6AvNYFQrVa5ZPWPbzg4=nUDMBju+DFA at mail dot gmail dot com> <CAEhDDbBXjY454UE=XfR9_R8fM3WgNUZf+A_g71QN7afCu6F4gQ at mail dot gmail dot com>
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