title: c++ linker error when method is defined out of header file
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4315969/where-to-define-c-class-member-template-function-and-functors-that-instantiate">Where to define C++ class member template function and functors that instantiate it?</a><br>
    <a href="https://stackoverflow.com/questions/7584781/inclusion-of-header-files-in-case-of-templates">inclusion of header files in case of templates</a>  </p>
  </blockquote>
  
  
  
  <p>I am using class templates.  I have several methods in my my class and if I define them in the .cpp file I am getting the linker error</p>
  
  <pre><code>error LNK2019: unresolved external symbol
  </code></pre>
  
  <p>Do all methods in template classes need to be defined in the header file? It makes my code look yucky but if it's the only way I am fine with it.</p>