Creating a class in C++ error
<p>I have a test class, it has nothing in it apart from the bones of a class.</p>

<p>h:</p>

<pre><code>#ifndef TEST_H_
#define TEST_H_


class Test
{
public:
    Test();
};

#endif /* TEST_H_ */
</code></pre>

<p>cpp</p>

<pre><code>#include "test.h"

Test::Test()
{
}
</code></pre>

<p>And then in my main class I have:</p>

<pre><code>Test *test = new Test();
</code></pre>

<p>I also include test.h.</p>

<p>I get the error:</p>

<pre><code> Undefined reference to Test::Test()
</code></pre>

<p>Can anyone tell me where i'm going wrong?</p>
