LNK 2019 C++ Error
<p>I have a NewTree class that's been defined in NewTree.h. When I make a new instance of NewTree in my main method, it throws an LNK 2019 error.</p>

<p>NewTree.h:</p>

<pre><code>template &lt;class T&gt;
class NewTree
{
public:

treeNode&lt;T&gt; *current;
treeNode&lt;T&gt; *root;

NewTree();
~NewTree();
bool insert(T *data, treeNode&lt;T&gt; *parent);
treeNode&lt;T&gt; search(T *target);
};
</code></pre>

<p>Line to make new instance of NewTree:</p>

<pre><code>NewTree&lt;xml_node&lt;&gt;&gt; *tree = new NewTree&lt;xml_node&lt;&gt;&gt;();
</code></pre>

<p>Why is Visual Studio giving me an LNK error?</p>

<p>Full Error: </p>

<pre><code>main.obj : error LNK2019: unresolved external symbol "public: __thiscall NewTree&lt;class rapidxml::xml_node&lt;char&gt; &gt;::NewTree&lt;class rapidxml::xml_node&lt;char&gt; &gt;(void)" (??0?$NewTree@V?$xml_node@D@rapidxml@@@@QAE@XZ) referenced in function _main
</code></pre>
