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.
> > If you get the 3.6 snapshot release, you will find a working visual studio solution file in the win32/NET directory. > > Get the snapshot here: > > http://www.unidata.ucar.edu/software/netcdf/builds/snapshot/ > > Hi Ed, > > Thanks for that. Unfortunately the included solution files are for an > old (2003) version of Visual Studio. After converting the project to > the more recent VC8, I'm getting a number of warnings and errors > compiling the core library: As I read the MS web site, VC8 is only out in beta now. Is that correct? Or are you referring to VC++2005? > > 1>ncx.c > 1>..\..\..\libsrc\ncx.c(97) : error C2440: 'initializing' : cannot > convert from 'void *' to 'char *' > 1> Conversion from 'void*' to pointer to non-'void' requires an > explicit cast > > > 1>fort-varsio.c > 1>..\..\..\fortran\fort-varsio.c(23) : warning C4518: > '__declspec(dllexport)' : storage-class or type specifier(s) unexpected > here; ignored > 1>..\..\..\fortran\fort-varsio.c(23) : warning C4502: 'linkage > specification' requires use of keyword 'extern' and must precede all > other specifiers > > /* > * Write values from a FORTRAN CHARACTER*(*) variable. > */ > FCALLSCFUN6(NF_INT, nc_put_vars_text, NF_PUT_VARS_TEXT, nf_put_vars_text, > NCID, VARID, COORDS, COUNTS, STRIDES, CBUF) <<<<<<<< > > > > 1>error.c > 1>..\..\..\libsrc\error.c(30) : error C2090: function returns array > > #ifdef HAVE_STRERROR > #include <string.h> /* contains prototype for ansi libc function > strerror() */ > #else > /* provide a strerror function for older unix systems */ > static char * > strerror(int errnum) > { > extern int sys_nerr; > extern char *sys_errlist[]; <<<<<<<< > > if(errnum < 0 || errnum >= sys_nerr) return NULL; > /* else */ > return sys_errlist[errnum]; > } > #endif /* NO_STRERROR */ > > > Any advice you can offer would be much appreciated. > Don't worry about the warnings, only the errors. Unfortunately, I can't tell which are warnings and which are errors in your list... THanks, Ed Ticket Details =================== Ticket ID: DCV-561351 Department: Support netCDF Priority: Critical Status: Open