C++ linker error
<p>I have a file <code>A.cpp</code> which has the following lines:</p>

<pre><code>#include"B.h"
int main(int argc, char **argv)
{
  ...
  char *input_file = *argv;  
  B *definition = new B(input_file);
  ...
}
</code></pre>

<p>In <code>B.h</code>, I have the following:</p>

<pre><code>class B
{
  public:
   // Constructors
   B(void);
   B(const char *filename);
   ...
}
</code></pre>

<p>When I compile, I get the following error: <code>undefined reference to 'B::B(char const*)'</code></p>

<p>Any suggestions on how to fix?</p>

<p>Thanks.</p>
