Linkage of classes
<p>Do classes have external linkage? If so, why couldn't I get the following to work on gcc?</p>

<pre><code>// mycpp1.cpp

class MyClass
{
    int x;
    // ......
};
</code></pre>

<p>`</p>

<pre><code>// mycpp2.cpp

class MyClass; // why doesn't this work?
</code></pre>

<p>I've done some googling around and came around this,</p>

<p>C++ Standard</p>

<blockquote>
  <p>(3.5/4) a named class (clause 9), or an unnamed class defined in a
  typedef declaration in which the class has the typedef name for
  linkage purposes (7.1.3);</p>
</blockquote>

<p>I could just include the file, but what would be the purpose of linkage?</p>
