[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #KKC-996483]: cannot find -lnetcdf



> Hello,
> I am trying to run a program that uses the netcdf libraries. I am running
> windows XP with the cygwin application for fortran compiling and
> installation. I installed zlib, hdf5 1.8.1, and netcdf-4. Everything
> seemed to install alright. When I try to compile the program I need using
> a command such as
>
> g95 mcd_mat.F -I /usr/local/include -L /usr/local/lib -lnetcdf -o mcd_mat
>
> I get an error /bin///ld: cannot find -lnetcdf
>
> I'm not sure if this is because in the /usr/local/lib directory I have
> libnetcdf.la and not libnetcdf.a. What can I do to fix this problem so the
> program find -lnetcdf? Thanks.
> Sincerely,
> Morgan Silverman
>
>
> Morgan L. Silverman
> Research Associate
> North Carolina State University
> National Institute of Aerospace
> Located at:  NASA Langley Research Center
> Bldg 1209, 100A-8
> 757-864-3219
> address@hidden
> address@hidden
>
>

Did you build netcdf from source?

Did the make test step work?

Thanks,

Ed

Ticket Details
===================
Ticket ID: KKC-996483
Department: Support netCDF
Priority: Normal
Status: Open