Also,
this indicates there might be a problem with the Cmake
and/or configure scripts with gcc 4.9.
And on second thought it might be better to make the default
values the corresponding 1 and 2 byte values instead of
the 4 byte vals.
RW
On 07/01/2014 01:30 PM, Richard Weed wrote:
This indicates that the NF_INT1_IS and NF_INT2_IS cpp macros
have not been defined in nfconfig.inc or are null
I probably should have added defaults to the #ifdefs in
module_netcdf_nc_data.F90 but this is the first time this
has ever come up.
Try the following
after
#elif NF_INT1_IS_C_LONG
Integer, Parameter :: CINT1 = C_LONG
Integer, Parameter :: NFINT1 = IK8
and before the #endif insert
#else
Integer, Parameter :: CINT1 = C_INT
Integer, Parameter :: NFINT1 = IK4
similar logic for the CINT2 values
#else
Integer, Parameter :: CINT2 = C_INT
Integer, Parameter :: NFINT2 = IK4
Russ, can you add these to the current github repository
RW
On 07/01/2014 10:25 AM, steve kirby wrote:
Hi,
I'm trying to compile netcdf-fortran-4.4b5 and get errors like this for both
CINT1 and CINT2. I'm using gcc version 4.9.0
=========================================================
module_netcdf_nc_interfaces.f90:647.26:
USE NETCDF_NC_DATA, ONLY: CINT1
1
Error: Symbol 'cint1' referenced at (1) not found in module 'netcdf_nc_data'
module_netcdf_nc_interfaces.f90:650.14:
Integer(KIND=CINT1), Intent(IN) :: op(*)
=========================================================
1
Error: Parameter 'cint1' at (1) has not been declared or is a variable, which
does not reduce to a constant expression
Also note that I built the netCDF "C" portion first, netcdf-4.3.0.
Thanks for any tips/ideas on how to resolve this.
Regards,
Steve
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/
--
---
-----
Richard Weed, Ph.D.
Associate Research Professor
Center for Advanced Vehicular Systems (CAVS)
Mississippi State University
email: rweed@xxxxxxxxxxxxxxxx
Phone: (662) 325-5450