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.
> Subject: netcdf3 - t_ncxx > > Ok, so now I seem to be having problems with t_ncxx, which compiles, and runs with: > Assertion failed: status == NC_ERANGE, file t_ncxx.c, line 1359 > ABNORMAL TERMINATION > > in the debugger, everything seems to be running fine until the very first > double assertion.. the rest seem to run fine.. (?).. > > perhaps this is a problem with my ncconfig.h setup (?) I assume that SIZEOF_DOUBLE > should be set to 8 for pentium/win95 ..? is there another setting that could be > causing me problems with this? > > :) Try this ncconfig.h, it is what I used on NT with Microsoft C. (I haven't integrated this stuff into the distribution.) -glenn /* libsrc/ncconfig.msc. A configuration include file Wintel by glenn */ /* $Id: ncconfig.in,v 1.19 1996/08/15 21:12:08 davis Exp $ */ #ifndef _NCCONFIG_H_ #define _NCCONFIG_H_ /* Define if type char is unsigned and you are not using gcc. */ #ifndef __CHAR_UNSIGNED__ #undef __CHAR_UNSIGNED__ #endif /* Define if your struct stat has st_blksize. */ #undef HAVE_ST_BLKSIZE /* Define to `long' if <sys/types.h> doesn't define. */ /* #undef off_t */ /* Define to `unsigned' if <sys/types.h> doesn't define. */ /* #undef size_t */ /* Define if you have the ANSI C header files. */ /* #undef STDC_HEADERS */ /* Define if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ #undef WORDS_BIGENDIAN /* Define if you don't have the <stdlib.h>. */ #undef NO_STDLIB_H /* Define if you don't have the <sys/types.h>. */ #undef NO_SYS_TYPES_H /* Define if you have the ftruncate function */ #undef HAVE_FTRUNCATE /* Define if you don't have the strerror function */ #undef NO_STRERROR /* The number of bytes in a size_t */ #define SIZEOF_SIZE_T 4 /* The number of bytes in a off_t */ #define SIZEOF_OFF_T 4 /* Define to `int' if system doesn't define. */ /* #undef ssize_t */ /* Define to `int' if system doesn't define. */ /* #undef ptrdiff_t */ /* Define to `unsigned char' if system doesn't define. */ /* #undef uchar */ typedef unsigned char uchar; /* Define if the system does not use IEEE floating point representation */ #undef NO_IEEE_FLOAT /* The number of bytes in a double. */ #define SIZEOF_DOUBLE 8 /* The number of bytes in a float. */ #define SIZEOF_FLOAT 4 /* The number of bytes in a int. */ #define SIZEOF_INT 4 /* The number of bytes in a long. */ #define SIZEOF_LONG 4 /* The number of bytes in a short. */ #define SIZEOF_SHORT 2 typedef int mode_t; typedef int ssize_t; #endif /* !_NCCONFIG_H_ */