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.
Markus, >Date: Thu, 25 Jun 1998 16:40:06 +0200 >From: Markus Werle <address@hidden> >Organization: . >To: Steve Emmerson <address@hidden>, >To: "Glenn P. Davis" <address@hidden> >Subject: Re: Problem with netCDF on HPUX 10.20 and cc >Keywords: 199806241439.IAA10195 In the above message, you wrote: > Sorry, but in my INSTALL file there are no settings for HPUX-10.20, > but only for HPUX 9, and these did not work. My mistake. The latest netCDF distribution (3.4) contains settings for HPUX B10.20 but you's (3.3.1) doesn't. > "Glenn P. Davis" <address@hidden> told me the solution > via address@hidden: ... > This resolves the cc problem immediately. Great! > Now the C++ Compiler was killed by - not really an error ... hugh. > I recommend You change the following in further distributions: > > No one expects that CFLAGS and CXXFLAGS are concatenated in > macros.make. Since You ask the user to set these flags in INSTALL > they should indeed be independent. > Why? Because I use aCC, a new ANSI C++ Compiler from hp, > which is much more ANSI-compliant than any other stuff > (like CC or g++) on my system, but has totally > different flags (e.g. does not know the option -Aa) Done. It'll be in the next release. > I changed the line in macros.make and got it! > > CFLAGS = +DAportable -D_INCLUDE_POSIX_SOURCE -Aa > #CXXFLAGS = $(CFLAGS) +DAportable > CXXFLAGS = +DAportable > > Just for info: my successful configuration > (successful in combination with the above changes): > > setenv CPPFLAGS -v > setenv CC /bin/cc > setenv CFLAGS "+DAportable -D_INCLUDE_POSIX_SOURCE -Aa" > setenv FC /opt/fortran/bin/f77 > setenv FFLAGS "-w +DAportable" > setenv CXX /opt/aCC/bin/aCC > setenv CXXFLAGS +DAportable > > > make test ran through without any problems. > Now I will try some optimization ... > > Thanks for Your efforts, Your quick answer > and for this really great library! You're welcome. -------- Steve Emmerson <http://www.unidata.ucar.edu>