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.
Martha, >Date: Wed, 25 Jul 2001 16:30:52 -0600 >From: Martha Limber <address@hidden> >Organization: ncar/rap >To: Steve Emmerson <address@hidden> >Subject: Re: 20010725: problems linking C++ netCDF on SunOS 5.7 >Keywords: 200107251747.f6PHlN121670 The above message contained the following: > Thanks for your reply. I think this is the problem: > > > Could it be that a different C++ compiler built the netCDF library than > > the one you're using to compile your program and that the C++ > > name-mangling is different in the two compilers? > > I did not have CXX set when compiling netcdf and so it chose > c++. We are using g++ for our project, so the compilers didn't > match. Ah! > I just tried to compile netcdf3.5 with g++ and received the following > message > when configuring the system: > > checking for g++... g++ > checking C++ compiler "g++"... configure: warning: g++ failed on test > program > configure: warning: Could not find working C++ compiler > configure: warning: Setting CXX to the empty string > configure: warning: The C++ interface will not be built The reason that g++ failed to compile the test program should be in the top-level file "config.log", which the configure script creates. Regards, Steve Emmerson <http://www.unidata.ucar.edu>