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.
To anyone interested: older versions of the DEC C compiler had a bug that made it impossible to initialize bit fields that fall on word boundaries. The XDRFLOAT program initializes all of the 32 bits for the floating point conversion. When you try to compile it, you get a stack dump and a very nasty error. DEC has fixed the bug and DEC C compilers version X1.3-009-266m (22-JUL-93) or later should not have this problem. In particular, the new version currently being shipped is certainly free of this bug. Of course, if compiling the product under AXP, don't forget to change XDRFLOAT's "ifdef vax" statements to "if defined(vax) || (__ALPHA)" and compile with the /NOMEMBER_ALLIGNEMENT switch. Happy networking, Valerio Luccio
netcdfgroup
archives: