[Thread Prev][Thread Next][Index]

[ferret_users] Create a netcdf file on MAC?



Dear All,

I have installed the gfortran and netcdf on Mac, but a problem appears when I use them to create a NC file.

root# gfortran -lnetcdf hb.f90
/usr/bin/ld: Undefined symbols:
_nf_close_
_nf_create_
_nf_def_dim_
_nf_def_var_
_nf_enddef_
_nf_get_var_real_
_nf_inq_varid_
_nf_open_
_nf_put_att_real_
_nf_put_att_text_
_nf_put_var_real_
_nf_strerror_
collect2: ld returned 1 exit status

I have copied the libnetcdf.a and netcdf.inc to the current directory, and pls find the hb.f in the attachment.
I wonder if I need another file to link for the netcdf. Could anyone offer some help?

Thank you very much!

Best regards,
Jian

**********************************
Jian Ma

Ph.D. Student
Department of Meteorology
University of Hawaii at Manoa
**********************************

Attachment: hb.f90
Description: Binary data


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement