[MITgcm-devel] RE: Netcdf, ifc and g77
Alistair Adcroft
adcroft at MIT.EDU
Fri Jul 9 14:44:48 EDT 2004
Ed, man! It does the trick.
% cat hello_netcdf.F
program hello_netcdf
#include "netcdf.inc"
print *,nf_inq_libvers()
end
% g77 hello_netcdf.F -lnetcdf
% ./a.out
3.5.1-beta13 of Nov 30 2003 18:57:44 $
% cat hello_netcdf.F90
program hello_netcdf
character(80) :: nf_inq_libvers
external :: nf_inq_libvers
print *,nf_inq_libvers()
end
% ifc -L/home/adcroft/netcdf/lib hello_netcdf.F90 -lnetcdf
program HELLO_NETCDF
6 Lines Compiled
% ./a.out
3.5.1 of Jul 9 2004 12:12:23 $
--
Dr Alistair Adcroft http://www.mit.edu/~adcroft
MIT Climate Modeling Initiative tel: (617) 253-5938
EAPS 54-1624, 77 Massachusetts Ave, Cambridge, MA, USA
More information about the MITgcm-devel
mailing list