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.

[netcdf-porting] Where is the INTVAR defined in netcdf4.0.1 source

NOTE: The netcdf-porting mailing list is no longer active. The list archives are made available for historical reasons.

Hi all,

I installed netcdf-4.0.1 on Mac OS X 10.6 (intel 64-bit).

I got the following waring:
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 *’

I checked the fort-nc4.c and found function 'nf_put_var1_int64' is 
FCALLSCFUN4(NF_INT, nc_put_var1_longlong, NF_PUT_VAR1_INT64, nf_put_var1_int64, 
NCID, VARID, COORDS, INTVAR)

In netcdf.h, nc_put_var1_longlong is
EXTERNL int
nc_put_var1_longlong(int ncid, int varid, const size_t *indexp,
            const long long *op);


Clearly, the argument INTVAR is 'const int *' type. So it is need to change to 
'const long long int *' type.

How can I do this?

Thanks

Guangshan


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