VMS Help  —  CC  Messages  CONSTSTOCLS
 Message        <Context> the const object "<name>" has no explicit
                storage class.  In C, its storage class defaults to
                "extern"; in C++, it defaults to "static".  Add an
                explicit "extern" or "static" keyword.

 Description    One of the more signifcant and confusing differences
                between C and C++ is their treatment of file scope
                const objects declared without a storage class.  C
                will give the object extern storage class, making the
                object visible in other compilation units.  C++ will
                give the object static storage class.  This can cause
                an undefined symbol error when other compilation
                units try to reference the symbol.

 User Action    Add an explicit "extern" or "static" keyword to the
                declaration.
Close Help