Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?

2014-11-25 Thread John Kim
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 progr

Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?

2014-11-25 Thread Csaba Raduly
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/

Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?

2014-11-25 Thread Marco Atzeri
On 11/25/2014 1:01 AM, John Kim wrote: Questions: 1) C API or Fortran API for NetCDF ? C API. 2) Have you installed libnetcdf-devel package and libnetcdf-fortran-devel ? No. Should I? for #1, at list libnetcdf-devel is needed 3) why -L"/cygdrive/c/Program Files (x86)/netCDF

Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?

2014-11-24 Thread John Kim
> Questions: > 1) C API or Fortran API for NetCDF ? C API. > 2) Have you installed libnetcdf-devel package and > libnetcdf-fortran-devel ? No. Should I? > 3) why -L"/cygdrive/c/Program Files (x86)/netCDF 4.3.1.1/lib" ? > The latest cygwin libnetcdf-devel package is 4.3.2-2 Will in

Re: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?

2014-11-24 Thread Marco Atzeri
On 11/24/2014 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

Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?

2014-11-24 Thread John Kim
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 But it says "undefined