NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] NETCDF4 install problem on Mac OS X 10.6 intel (64bit)

Hi all,

When I install netcdf4 on Mac OS X 10.6, I got the following warning:

fort-nc4.c: In function ‘nf_put_var1_int64_’:
fort-nc4.c:209: warning: passing argument 4 of ‘nc_put_var1_longlong’ from 
incompatible pointer type
../libsrc4/netcdf.h:1043: note: expected ‘const long long int *’ but argument 
is of type ‘const int *’
fort-nc4.c: In function ‘nf_put_vara_int64_’:
fort-nc4.c:211: warning: passing argument 5 of ‘nc_put_vara_longlong’ from 
incompatible pointer type
../libsrc4/netcdf.h:1158: note: expected ‘const long long int *’ but argument 
is of type ‘const int *’

......................


I checked the problem and found that:
line 209 in fort-nc4.c is as following:
FCALLSCFUN4(NF_INT, nc_put_var1_longlong, NF_PUT_VAR1_INT64, nf_put_var1_int64,
        NCID, VARID, COORDS, INTVAR)

But in ../libsrc4/netcdf.h 1043 is as following:
EXTERNL int
nc_put_var1_longlong(int ncid, int varid, const size_t *indexp,
             const long long *op);

According to my understand, the warning means that INTVAR in fort-nc4.c line 
209 is of type 'const int'. 
So how to change INTVAR to long type???

Thanks.

Guangshan



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