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.
>To: <address@hidden> >From: "Sharav Amarjargal" <address@hidden> >Subject: netcdf problem >Organization: UCAR/Unidata >Keywords: 200210260939.g9Q9dHq12508 Hi, > i don't know why, but in the display it shows me following errors > but they are not in log file when i give command like make > > make.log > > > here is error displayed: > > Mot making 'f90/all' because no FORTRAN compiler > In file included from /usr/include/c++/3.2/backward/iostream.h:31, > from ncvalues.cpp:10: > > /usr/include/c++/3.2/backward/backward_warning.h:32:2 warning: > #warning This file includes at least one deprecated or antiquated > header. Please consider using one of the 32 headers found in section > 17.4.1.2 of the C++ standard. Examples include substituting the <X> > header for the <X.h> for C++ includes, or <sstream> instead of the > deprecated header <strsream.h>. To disable this warning use > -Wno-deprecated. > > ncvalues.cpp: In member function 'virtual std: :ostream& > NcValues_float: :print(std: :ostream&) const': > ncvalues.cpp:313: invalid conversion from 'long int' to 'std::_Ios_Fmtflags' > ncvalues.cpp:313: initializing argument 1 of 'std::_Ios_Fmtflags > std::ios_base::flags(std::_Ios_Fmtflags)' > ncvalues.cpp: In member function 'virtual std::ostream& > NcValues_double::print(std::ostream&) const': > ncvalues.cpp:325: invalid conversion from 'long int' to 'std::_Ios_Fmtflags' > ncvalues.cpp:325: initializing argument 1 of 'std::_Ios_Fmtflags > std::ios_base::flags(std::_Ios_Fmtflags)' > make[2]:*** [ncvalues.o] Error 1 > make[1]:***[subdir_target] Error 1 > make:*** [cxx/all] Error 2 The g++ compiler for versions 3.0 and later is fairly strict in requiring compliance with the latest C++ standard, but the netCDF C++ interface still uses earlier syntax and header files. You can either use an earlier version of g++ (for example from gcc 2.95) or apply the patch available here, under the heading "Problem compiling C++ interface with gcc-3.0": http://www.unidata.ucar.edu/packages/netcdf/known_problems.html#gcc-3.0 --Russ