title: extern const array does not link
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/998425/why-does-const-imply-internal-linkage-in-c-when-it-doesnt-in-c">Why does const imply internal linkage in C++, when it doesn’t in C?</a>  </p>
  </blockquote>
  
  
  
  <p>If I have the following:</p>
  
  <p>a.cpp:</p>
  
  <pre><code>const int ArrayOfInts[] = {1, 2, 3, 4, 5};
  </code></pre>
  
  <p>b.cpp:</p>
  
  <pre><code>extern const int ArrayOfInts[];
  
  void SomeFunc()
  {
      int a = ArrayOfInts[0];
  }
  </code></pre>
  
  <p>The linker complains that ArrayOfInts is unresolved from b.obj. Removing the const qualifier makes the link succeed. Any ideas why this fails?</p>
  
  <p>Thanks.</p>