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: Eirh-Yu Hsie <address@hidden> >Organization: Aeronomy Laboratory/NOAA >Keywords: 200302071859.h17IxF602516 ldm-mcidas RedHat 8.0 >Hello, Tom: >I found out what the problem was. I have problem building netCDF 3.5.0 with >gcc and g++: > >setenv CC gcc >setenv CXX g++ OK. You should be able to build ldm-mcidas linking against the version of netCDF built with McIDAS. >The c++ interface always fails. So I change the compiler (Portland Group >Version 4.0): > >setenv CC pgfcc setenv CXX pgCC > >It compiles fine, but I have problem when I compile other program with gcc and >link with the pgcc generated library (libnetcdf.a). I am not suprised by this. >I would very like to know how Unidata compile NetCDF c++ interface in RedHat >8.0. I believe that you need to grab the LDM 3.5.1 beta (or above) to be able to build the C++ interface using GCC 3+ (RedHat 8.0 comes with such a version of GCC). >In the McIDAS case, you do not compile NetCDF c++ interface (CXX is >empty). That's right, my recommendations for building McIDAS is to define CXX to be blank so the C++ interface will not be built (McIDAS doesn't need that interface, so why build it). I am at the AMS show right now, so I have to run... Tom