VMS Help  —  CC  /SHARE_GLOBALS
     /NOSHARE_GLOBALS (D)

  Performs two functions:

   o  Controls whether the compiler treats declarations of objects
      with the globaldef keyword as shared or not shared.

   o  Controls whether the initial extern_model is shared or not
      shared (for those extern_models where it is allowed).  The
      initial extern_model of the compiler is a fictitious pragma
      constructed from the settings of the /EXTERN_MODEL and
      /SHARE_GLOBALS.

  The default value is /NOSHARE_GLOBALS.  This default value is
  different from VAX C (which treated externs as SHR by default), and
  has the following impact:

  1.  When linking old object files or object libraries with newly
      produced object files, you might get "conflicting attributes
      for psect" messages, which can be safely ignored as long as you
      are not building shareable libraries.

  2.  The /NOSHARE_GLOBALS default makes building shareable libraries
      easier.
Close Help