Re: [netcdfgroup] compiling error

"H.Dang" <danghy@xxxxxxxxx> writes:

> Hi dear all,
>
> I'm using netCDF-3.6.2, when I compile my FORTRAN code, I got bunch of
> errors like this:
>
> ./nc_read_chk1.f90:21: undefined reference to `netcdf_nf90_inq_varid_'
> ./nc_read_chk1.f90:21: undefined reference to
> `netcdf_nf90_get_var_3d_fourbytereal_'
> .....
>
> I have "use netcdf" in nc_read_chk1.f90, and I've set the netcdf path in
> environment too.  So what could be the reason for this mistake? Thanks a
> lot.
>
> --
> Cordially,
> Hongyan(¸é??)
> Tel: 1-519-8884567ext36667
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
> http://www.unidata.ucar.edu/mailing_lists/ 

I don't know why the reference would be to netcdf_nf90_..., the
functions are just nf90_... (without the "netcdf_" in front).

Also, 3.6.2 is a very, very old release. Please upgrade to the 4.1.3
release to get important bug fixes. If you don't wish to use the
netCDF-4/HDF5 features, run configure with --disable-netcdf-4.

Good luck!

Ed

-- 
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: