This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Well, the latest is that this fix seemed to work on ouray (I'm > currently testing it, so it's not set in stone yet that it works), but > not on antero. Here's the error message I get: > > c89 -c -O -I. -DNDEBUG ncx.c > CC-28 c89: ERROR File = ncx.c, Line = 3482 > The expression used must have a constant value. > > word xbuf[nelems]; > ^ > > CC-28 c89: ERROR File = ncx.c, Line = 3668 > The expression used must have a constant value. > > word xbuf[nelems]; > ^ > > 2 errors detected in the compilation of "ncx.c". > Make: "c89 -c -O -I. -DNDEBUG ncx.c": Error code 1 > cmd-2436 make: Stop. > > To fix this, I used "cc" instead of "c89" which worked. I don't know > what this means, but the netcdf INSTALL file tells me I should > be using c89 for the C compiler. > > I'll just keep chugging along and keep you posted. > > Mary The feature in use is indeed a cray extension and not legal STDC. Since this is in middle of cray specific code, it shouldn't be a problem. My personal recommendation is to use "cc" rather than "c89" on this platform. -glenn