Re: [netcdfgroup] netcdf-fortran-4.4b5 compilation issue - cint1, cint2 not found

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



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