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.
> netCDF installation problemDear Sir/Madam, > > Attached, please find the information related to netCDF installation > problem. > > Would you please help me to resolve this problem? > > Thank you in advance, > > -- > Morteza Mesbah > PhD Candidate > Civil & Environmental Engineering > Carleton University > Tel.: 613-520-2600 ext:7468 > > Your problem is here: make[1]: Leaving directory `/home/morteza/cmaq/netcdf-3.6.2/nf_test' Making check in cxx make[1]: Entering directory `/home/morteza/cmaq/netcdf-3.6.2/cxx' depbase=`echo ncvalues.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ if /bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran -DDEBUG -I../libsrc -g -O2 -MT ncvalues.lo -MD -MP -MF "$depbase.Tpo" -c -o ncvalues.lo ncvalues.cpp; \ then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi libtool: compile: c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran -DDEBUG -I../libsrc -g -O2 -MT ncvalues.lo -MD -MP -MF .deps/ncvalues.Tpo -c ncvalues.cpp -o ncvalues.o ncvalues.cpp: In member function 'virtual char* NcValues_ncbyte::as_string(long int) const': ncvalues.cpp:238: error: 'strncpy' was not declared in this scope ncvalues.cpp: In member function 'virtual char* NcValues_char::as_string(long int) const': ncvalues.cpp:246: error: 'strncpy' was not declared in this scope make[1]: *** [ncvalues.lo] Error 1 make[1]: Leaving directory `/home/morteza/cmaq/netcdf-3.6.2/cxx' make: *** [check-recursive] Error 1 The C++ API is not building. I believe this is fixed in later releases - 3.6.2 is almost two years old now. Can you get the latest release, 4.0, and try it? Also, if you don't need C++, you can turn off the C++ API with --disable-cxx as a configure option. Please let me know if this doesn't help. Thanks, Ed Ticket Details =================== Ticket ID: OHC-957718 Department: Support netCDF Priority: Normal Status: Closed