[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20030609: compiling netcdf without second underscore



Brian,

>Date: Mon, 9 Jun 2003 07:30:51 -0500 
>From: "HOETH, BRIAN R. (JSC-ZS) (LM)" <address@hidden>
>Organization: NASA
>To: "'Steve Emmerson'" <address@hidden>
>Subject: RE: 20030606: compiling netcdf without second underscore 

The above message contained the following:

> Thanks for the info.  Indeed, when I had -DpgiFortran in my CPPFLAGS for the
> netcdf compile, the subsequent compile for my arps2ncdf worked.  For
> reference, these are the flags that I used for the Unidata netcdf package:
> 
> setenv CC /usr/bin/gcc
> setenv CPPFLAGS "-DNDEBUG -DpgiFortran"
> setenv CFLAGS -O
> setenv FC /usr/pgi/linux86/bin/pgf90
> setenv FFLAGS "-O -w -Mnosecond_underscore"
> setenv CXX /usr/bin/g++
> 
> As you can see, I even added a -Mnosecond_underscore for the FFLAGS as an
> extra added safeguard.  The C++ portion of the netcdf failed?  It doesn't
> appear that this will hurt me since I do not believe that the ARPS software
> or the Unidata decoders package needs the C++ interface to netcdf.  Just
> curious if anybody else was able to get the C++ portion of the netcdf
> package to compile under Red Hat Linux 8.0 though?  

The Portland Group C++ compiler (pgCC) has had problems compiling the
netCDF package in the past.  Apparently, this tradition continues --
see, for example, 

    http://www.unidata.ucar.edu/cgi-bin/msgout?/glimpse/netcdf/5036

If I were you, I would complain to Portland Group.

> I tried a couple other C++ compilers, but they failed too.  Here are
> the other options I tried:
> 
> setenv CXX /usr/pgi/linux86/bin/pgCC
> setenv CXX /usr/bin/gcc

Did you try g++?  That should work.

> Like I said, I don't think it's a big deal, but I was just curious if
> anybody else has had success compiling the C++ portion of netCDF under Red
> Hat Linux 8.0?
> 
> Thanks,
> Brian

Regards,
Steve Emmerson