/sys$common/syshlp/helplib.hlb
CC, Messages, CONSTSTOCLS

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

 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     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.