nco 4.2.5 make error

Help
Vitaly
2013-02-28
2013-10-17
  • Vitaly
    Vitaly
    2013-02-28

    i tried install nco 4.2.5 on rhel 5.6 X86x64 . All required packages are installed . After running make i get follow error message:
    nco_msa.c: In function 'nco_msa_prn_var_val':
    nco_msa.c:1007: error: 'idx' undeclared (first use in this function)
    nco_msa.c:1007: error: (Each undeclared identifier is reported only once
    nco_msa.c:1007: error: for each function it appears in.)
    nco_msa.c:1008: error: 'jdx' undeclared (first use in this function)
    make: ***  Error 1
    Any ideas ?
    Thanks

     
  • Pedro Vicente
    Pedro Vicente
    2013-02-28

    It seems that you are not enabling a netCDF4 build. Yon can solve that error in 3 ways:

    1) enable a netCDF4 build with configure
    2) edit the 2 lines  in that file, and change to

    nco_msa.c:1007: error: 'idx' undeclared (first use in this function)

    #else /* !ENABLE_NETCDF4 */
      for(int idx=0;idx<var.nbr_dim;idx++)

    3) download the latest snapshot from the home page, where this error has been fixed

    cvs -z3 -d:pserver:anonymous@nco.cvs.sf.net:/cvsroot/nco co -kk nco

    Pedro

     
  • Vitaly
    Vitaly
    2013-03-03

    Thank you. I'll try it and update with the progress.