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

[netCDF #QUY-433308]: netcdf link

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDF #QUY-433308]: netcdf link
  • Date: Fri, 28 Sep 2007 09:15:43 -0600

Hi Agustin,

I think the order of flags is wrong when you invoke pgf90.  Instead of

>  pgf90 -L../netcdf/lib -lnetcdf -I../netcdf/include simple_xy_rd.f90

try

   pgf90 -I../netcdf/include simple_xy_rd.f90 -L../netcdf/lib -lnetcdf

On the line

> pgf90 -o emis.exe -I../netcdf/include -L../netcdf/lib -lnetcdf

I didn't see the name of any .f90 source file.

If you want to see in detail the commands use to compile and link one of the
examples, such as
simple_xy_rd, just go to the example/F90/ directory and remove the object and
executable
files simple_xy_rd.o and simple_xy_rd, then invoke "make check".

I hope this helps.

--Russ



Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: QUY-433308
Department: Support netCDF
Priority: Normal
Status: Closed