Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Compiling on Tru64 with Compaq cxx 6.5

Hi!

I'm trying to compile the C++ part of netcdf 3.6.0-p1 on an Alpha Workstation 
running Tru64 V5.1B.
I want to compile using the native Compaq compiler (Version 6.5, apparently) 
and ghet the following error during the C++ part:

make[2]: Entering directory `/usr/orgis/build/netcdf-3.6.0-p1/src/cxx'
cxx -c -O2 -std ansi -D__USE_STD_IOSTREAM -I/usr/orgis/Tru64/include -I../libsrc
cxx: Warning: ncvalues.h, line 35: integer conversion resulted in a change of
          sign
static const ncbyte ncBad_byte = NC_FILL_BYTE;
---------------------------------^
cxx: Error: ../libsrc/nc.h, line 41: expected an identifier
        NC_UNSPECIFIED = 0,
--------^
cxx: Info: 1 error detected in the compilation of "netcdf.cpp".


Is this just a problem with a too old version of Compaq C++ ?  The code? Do I 
need some special compiler flags (apart from -std ansi, perhaps)?

Greets,

Thomas.

-- 
Thomas Orgis - theoretischer Physiker, praktischer Mensch
Arbeitsgruppe Nichtlineare Dynamik,
Universitaet Potsdam


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690