C++ undefined reference
<p>My problem is the following :
I have a class A that inherits from an abstract base class. I override all the virtual functions from the base class, and I have a constructor like this :</p>

<pre><code>A::A(B* b)
{
this-&gt;b=b;
}
</code></pre>

<p>In the constructor of class B , I have the following piece of code:</p>

<pre><code>A* a=new A(this)
</code></pre>

<p>However this line of code gives the error : undefined reference to 'A::A(B*)' </p>

<p>I have absolutly  no idea why could this be happening , so any suggestion would be greatly appreciated ! </p>
