ld: symbol(s) not found for architecture x86_64
<p>I am trying to compile a program. It requires netcdf (which I downloaded with macports) and it is in fortran. I tried using -m32 in case it was a problem with the 64 vs 32 bit version, but it did not change anything. This is the full error message:</p>

<pre><code>call_mcd.F:6095:40:

       call pbl_parameters(1,dimlevs,ps,pplev,z_0,
                                    1
Warning: Rank mismatch in argument ‘ps’ at (1) (rank-1 and scalar)
Undefined symbols for architecture x86_64:
  "_nf_close_", referenced from:
      _loadeof_ in ccfshvBk.o
      _opend_ in ccfshvBk.o
      _mola_ in ccN2zoJZ.o
  "_nf_get_var_int2_", referenced from:
      _mola_ in ccN2zoJZ.o
  "_nf_get_var_real_", referenced from:
      _loadvar_ in ccfshvBk.o
      _loadeof_ in ccfshvBk.o
      _getsd_3d_ in ccfshvBk.o
      _getsd_2d_ in ccfshvBk.o
      _get_3d_ in ccfshvBk.o
      _get_2d_ in ccfshvBk.o
      _heights_ in ccN2zoJZ.o
      ...
  "_nf_inq_varid_", referenced from:
      _loadvar_ in ccfshvBk.o
      _loadeof_ in ccfshvBk.o
      _getsd_3d_ in ccfshvBk.o
      _getsd_2d_ in ccfshvBk.o
      _get_3d_ in ccfshvBk.o
      _get_2d_ in ccfshvBk.o
      _mola_ in ccN2zoJZ.o
      ...
  "_nf_open_", referenced from:
      _loadeof_ in ccfshvBk.o
      _opend_ in ccfshvBk.o
      _mola_ in ccN2zoJZ.o
      _heights_ in ccN2zoJZ.o
  "_nf_strerror_", referenced from:
      _loadeof_ in ccfshvBk.o
      _getsd_3d_ in ccfshvBk.o
      _getsd_2d_ in ccfshvBk.o
      _get_3d_ in ccfshvBk.o
      _get_2d_ in ccfshvBk.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
</code></pre>

<p>Does anyone have an idea on what I can do? 
Thanks! </p>