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.
>From: Martin Sechny <address@hidden> >Organization: ? >Keywords: 200403030817.i238HVrV007347 netCDF C++ Martin, >I have compiled NetCDF-3 included in GENESIS v. 2.2.1 >(http://www.genesis-sim.org/GENESIS). >I think that in file "netcdf-3.4/src/configure" might be following >error: > >After executing "./configure/" I can see theese lines: > configure: Empty CXX variable > configure: The C++ interface will not be built >Problem is in line 1089, variable $CXX is not set. I inserted line: > CXX='c++' >before line 1089 and it is OK. The correct way to get the C++ interface to netCDF to build is to define the Unix environment variable CXX before running configure. I suggest backing out of the configure edit you did, running 'make distclean', defining CXX: setenv CXX c++ <- C-shell syntax CXX=C++ export CXX <- conforming shell syntax and then rerun configure. >I use Intel Pentium (i586) with Linux Slackware 9.1 (kernel 2.4, gcc >3.2.3). >The C++ compiler is OK. OK. Setting the Unix CXX environment variable is all you should need to do. Cheers, Tom Yoksas -- NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.