[MINC-development] MINC2 and required NetCDF version
Sean McBride
sean at rogue-research.com
Wed May 27 15:48:41 EDT 2009
On 5/27/09 2:32 PM, Sean McBride said:
>It seems that MINC 2.0.18 does not compile against NetCDF 4.0.1 (the
>current version). The error is:
>
>libsrc/image_conversion.c: In function 'miicv_create':
>libsrc/image_conversion.c:219: error: 'MAX_NC_OPEN' undeclared (first
>use in this function)
>libsrc/image_conversion.c:219: error: (Each undeclared identifier is
>reported only once
>libsrc/image_conversion.c:219: error: for each function it appears in.)
>
>MAX_NC_OPEN was in netcdf.h but was removed at some point:
><http://mailman.unidata.ucar.edu/support/help/MailArchives/netcdf/
>msg00453.html>
>
>In MINC it's used here:
>
>/* Maximum number of icv's allowed */
>#define MI_MAX_NUM_ICV MAX_NC_OPEN
>
>Maybe this could just be changed to 32 (NetCDF's old value)?
Actually, it's used elsewhere too... If I #define MAX_NC_OPEN 32 just
after the #include <netcdf.h> in minc.h then compilation succeeds.
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the MINC-development
mailing list