title: Shared string constant in C++
body: <p>I want to define a string constant that can be used by various classes.
  So I created a header file and added:</p>
  
  <pre><code>namespace MyConstants
  {
      extern const char* Constant1 = "SomeString";
  }
  </code></pre>
  
  <p>This header gets included in several .cpp files from which I access the string.</p>
  
  <p>This gives me the following linker error:</p>
  
  <blockquote>
    <p>fatal error LNK1169: one or more multiply defined symbols found</p>
  </blockquote>
  
  <p>How would I need to change the string's declaration to make this linker error go away?</p>