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.
>Date: 16 Oct 2002 19:06:28 +0200 >From: Juergen Rose <address@hidden> >To: Steve Emmerson <address@hidden> >Subject: Re: 20021016: building netcdf-3.5.1-beta3 with gcc-3.2: stdin not >constant Juergen, You wrote: > With the new version of ncegnyy.c the problem with the FILE pointer > initialization disapeared. But there are still two problems with the > configure script. > ... > checking for /usr/bin/g++... /usr/bin/g++ > checking C++ compiler "/usr/bin/g++"... configure: warning: /usr/bin/g++ > failed on test program > configure: warning: Could not find working C++ compiler > ... > creating cxx/ncconfig.h > cat: ./cxx/ncconfig.in: No such file or directory > cxx/ncconfig.h is unchanged > > The first problem I can remove if I replace > > #ifdef __cplusplus > extern "C" void exit(int); > #endif > > #include <iostream> > int main() { > cout << ""; > return 0; > } > > by > > #ifdef __cplusplus > //extern "C" void exit(int); > #endif > > #include <iostream> > int main() { > std::cout << ""; > return 0; > } > > For the second problem I don't know any solution. With and without this > patch I can compile netcdf with or without c++ support. The file ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.5.1-beta4.tar.Z has the missing file cxx/ncconfig.in so may work. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu